Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  


Sets the HTML text of the new email.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SendMail 4.3 Yes Yes Yes Yes Yes

MBS( "SendMail.SetHTMLText"; EmailID; Text )


Parameter Description Example value
EmailID The email reference number obtained using SendMail.CreateEmail function. $EmailID
Text The HTML text for the email. Will be encoded by the plugin to quoted printable UTF-8. Email::HTMLText


Returns OK or error.


Sets the HTML text of the new email.
See also SendMail.SetPlainText and SendMail.SetRichText.
If you need to encode text yourself to html, you can use the Text.EncodeToHTML function.
You can read html content from file using the Text.ReplaceNewline function.


Create email and set content:

Set Variable [$EmailID; Value:MBS("SendMail.CreateEmail")]
Set Variable [$r; Value:MBS("SendMail.SetHTMLText"; $EmailID; $html)]

See also

Example Databases

SendMail.SetFrom   -   SendMail.SetInReplyTo

Feedback: Report problem or ask question.

MBS Xojo Plugins