Package com.mailosaur.models
Class MessageForwardOptions
java.lang.Object
com.mailosaur.models.MessageForwardOptions
Options to use when forwarding a message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets any HTML content to include when forwarding the message.Sets any plain text to include when forwarding the message.Sets the email address to which the email will be sent.
-
Constructor Details
-
MessageForwardOptions
public MessageForwardOptions()
-
-
Method Details
-
withTo
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
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
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.
-