SMPPCenter’s SMPP software offers both REPLACE and TEMPLATE REPLACE actions in Text Message rules under normalization, but they serve different purposes. Here’s the difference:

REPLACE:

  • Replaces a specific portion of the message text with the New Text, based on the Text Rule (EQUALS or STARTS WITH).
  • Only the matching text is replaced, leaving the rest of the message unchanged.
  • Example:
    • Origin Text: “Your OTP is 1”
    • Text Rule: EQUALS
    • New Text: “Your Code is 1”
    • Action: REPLACE
    • Result: “Your Code is 1” (replaces the matching portion).

TEMPLATE REPLACE:

  • Replaces the entire message with the New Text, ignoring the rest of the original message content.
  • Useful for completely reformatting the message while retaining dynamic values (e.g., OTP codes).
  • Example:
    • Origin Text: “Your OTP is 1”
    • Text Rule: EQUALS
    • New Text: “Your Verification Code for SMPP Software Login is 1. Regards SMPP Software.”
    • Action: TEMPLATE REPLACE
    • Result: “Your Verification Code for SMPP Software Login is 1. Regards SMPP Software.” (replaces the entire message).

When to Use Each

  • Use REPLACE for minor text adjustments, such as changing a single word or phrase (e.g., “OTP” to “Code”).
  • Use TEMPLATE REPLACE for a complete message overhaul, such as adding branding or reformatting the entire message structure.

Best Practices

  • Ensure the New Text in TEMPLATE REPLACE includes any dynamic values (e.g., OTP codes) to avoid losing critical information.
  • Test both actions with sample messages to confirm the desired output.

Understanding these actions helps you customize messages effectively on SMPPCenter. For assistance, contact our support team.