Comparing email previews providers? Discover our new pricing options - chat to sales or book a demo to unlock your savings now
SMS testingReplying

Replying to SMS messages

Use the reply function to simulate a user replying to one of your SMS messages.

If your product is capable of handling SMS replies from your customers (e.g. to opt out of further messages), you can use Mailosaur’s reply feature to simulate such a scenario.

When you reply, the SMS message is sent back to the phone number it was originally sent to Mailosaur from. Before you can reply to SMS for the first time, you may need to contact our support team to configure the number, so that is able to reply.

Content filtering

In order to prevent misuse and ensure compliance with our industry obligations, Mailosaur restricts SMS replies to single words and certain pre-approved phrases (e.g. "Opt out", "Yes please", "No thanks"). These pre-approved phrases apply to all accounts.

Enterprise customers have more fine-grained control over what they can send with their phone numbers. For more information on configuring these restrictions, contact support.

Replying to an SMS message

You can reply to SMS messages within the Mailosaur Dashboard, or via the API:

  1. Open one of your messages within the Mailosaur Dashboard.
  2. Click the Reply button, at the top of the screen.
  3. Enter a text body for the reply.
  4. When you are finished, click Send.
// MESSAGE_ID: The `id` of the message you want to reply to
await mailosaur.messages.reply('{MESSAGE_ID}', {
  text: 'STOP'
});
// MESSAGE_ID: The `id` of the message you want to reply to
cy.mailosaurReplyToMessage('{MESSAGE_ID}', {
  text: 'STOP'
});
body = "STOP"
options = MessageReplyOptions(text=body)

# MESSAGE_ID: The `id` of the message you want to reply to
mailosaur.messages.reply("{MESSAGE_ID}", options)
MessageReplyOptions options = new MessageReplyOptions();
options.withText("STOP");

// MESSAGE_ID: The `id` of the message you want to reply to
mailosaur.messages().reply("{MESSAGE_ID}", options);
// MESSAGE_ID: The `id` of the message you want to reply to
mailosaur.Messages.Reply("{MESSAGE_ID}", new MessageReplyOptions() {
    Text = "STOP"
  }
);
options = Mailosaur::Models::MessageReplyOptions.new()
options.text = 'STOP'

# MESSAGE_ID: The `id` of the message you want to reply to
mailosaur.messages.reply('{MESSAGE_ID}', options)
$options = new MessageReplyOptions();
$options->text = 'STOP';

// MESSAGE_ID: The `id` of the message you want to reply to
$mailosaur->messages->reply('{MESSAGE_ID}', $options);
// MESSAGE_ID: The `id` of the message you want to reply to
m.Messages.Reply("{MESSAGE_ID}", &MessageReplyOptions{
  Text: "STOP",
})