-
It works if I didn't specify the But what if I want to send without HTML ( I'm sure the content should only be plain text ): This throws an error saying that the Another question, do |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you want to set plain-text only, that's the default behaviour, so it's very simple:
The
This will call |
Beta Was this translation helpful? Give feedback.
-
@Synchro May I know how to add line break for plain-text for ( |
Beta Was this translation helpful? Give feedback.
If you want to set plain-text only, that's the default behaviour, so it's very simple:
Body
is a plain text body by default, but if you callisHTML
, it will be handled as HTML, so this will produce an HTML-only message:AltBody
is there to provide a fallback to plain text, and typically you only set that if you are also using HTML:The
msgHtml()
method provides a shortcut and some automation to this process:This will call
isHTML
, setBody
…