Class MessageForwardOptions

java.lang.Object
com.mailosaur.models.MessageForwardOptions

public class MessageForwardOptions extends Object
Options to use when forwarding a message.
  • Constructor Details

    • MessageForwardOptions

      public MessageForwardOptions()
  • Method Details

    • withTo

      public MessageForwardOptions withTo(String to)
      Sets the email address to which the email will be sent. Must be a verified email address.
      Parameters:
      to - The email address.
      Returns:
      the MessageForwardOptions object itself.
    • withText

      public MessageForwardOptions withText(String text)
      Sets any plain text to include when forwarding the message. Note that only text or html can be supplied, not both.
      Parameters:
      text - Plain text content to include when forwarding the message.
      Returns:
      the MessageForwardOptions object itself.
    • withHtml

      public MessageForwardOptions withHtml(String html)
      Sets any HTML content to include when forwarding the message. Note that only text or html can be supplied, not both.
      Parameters:
      html - HTML content to include when forwarding the message.
      Returns:
      the MessageForwardOptions object itself.