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

Forwarding email

Learn how to forward individual emails and set up automatic forwarding rules to send messages outside of Mailosaur.

Teams often need to forward emails to an email address outside of Mailosaur. For example, to send messages to colleagues for further review/analysis, or to test email handling functionality within a product.

You can forward messages from your Mailosaur account to external email addresses either one-by-one, or via the creation of automated forwarding rules.

Before you can forward messages, you must first verify an external email address or domain name so that you can send email to it.

Forwarding individual emails

You can forward emails within the Mailosaur Dashboard, or via the API:

  1. Open one of your emails within the Mailosaur Dashboard.
  2. Click the Forward button, at the top of the screen.
  3. Select the email address to send to. Remember that you can only send to verified external email addresses.
  4. Enter the message body for the forwarded email.
  5. When you are finished, click Send.
// MESSAGE_ID: The `id` of the message you want to forward
await mailosaur.messages.forward('{MESSAGE_ID}', {
  to: 'someone@example.com', // must be a verified address
  html: '<p>Hello world.</p>'
});
// MESSAGE_ID: The `id` of the message you want to forward
cy.mailosaurForwardMessage('{MESSAGE_ID}', {
  to: 'someone@example.com', // must be a verified address
  html: '<p>Hello world.</p>'
});
recipient = "someone@example.com" # must be a verified address
body = "<p>Hello world.</p>"
options = MessageForwardOptions(recipient, html=body)

# MESSAGE_ID: The `id` of the message you want to forward
mailosaur.messages.forward("{MESSAGE_ID}", options)
MessageForwardOptions options = new MessageForwardOptions();
options.withTo("someone@example.com") // must be a verified address
  .withHtml("<p>Hello world.</p>");

// MESSAGE_ID: The `id` of the message you want to forward
mailosaur.messages().forward("{MESSAGE_ID}", options);
// MESSAGE_ID: The `id` of the message you want to forward
mailosaur.Messages.Forward("{MESSAGE_ID}", new MessageForwardOptions() {
    To = "someone@example.com", // must be a verified address
    Html = "<p>Hello world.</p>"
  }
);
options = Mailosaur::Models::MessageForwardOptions.new()
options.to = 'someone@example.com' # must be a verified address
options.html = '<p>Hello world.</p>'

# MESSAGE_ID: The `id` of the message you want to forward
mailosaur.messages.forward('{MESSAGE_ID}', options)
$options = new MessageForwardOptions();
$options->to = 'someone@example.com'; // must be a verified address
$options->html = '<p>Hello world.</p>';

// MESSAGE_ID: The `id` of the message you want to forward
$mailosaur->messages->forward('{MESSAGE_ID}', $options);
// MESSAGE_ID: The `id` of the message you want to forward
m.Messages.Forward("{MESSAGE_ID}", &MessageForwardOptions{
  To:   "someone@example.com", // must be a verified address
  Html: "<p>Hello world.</p>",
})

Automatic forwarding rules

You can also set up rules to automatically forward messages that match given criteria.

See Forwarding rules for full details on creating, editing, and deleting forwarding rules.