Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SendMail.SetPlainText
Sets the plain text of the new email.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SendMail | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "SendMail.SetPlainText"; EmailID; Text ) More
Parameters
Parameter | Description | Example |
---|---|---|
EmailID | The email reference number obtained using SendMail.CreateEmail function. | $EmailID |
Text | The plain text for the email. Will be encoded by the plugin to quoted printable UTF-8. | Email::PlainText |
Result
Returns OK or error.
Description
Sets the plain text of the new email.See also SendMail.SetHTMLText and SendMail.SetRichText.
You can read text content from file using the Text.ReadTextFile function.
You can use Text.MergeFields to replace placeholders with values from variables, fields and expressions.
Examples
Create email and set content:
Set Variable [$EmailID; Value:MBS("SendMail.CreateEmail")]
Set Variable [$r; Value:MBS("SendMail.SetPlainText"; $EmailID; "Hello World")]
Sets the text as plain text and as html:
Set Variable [ $r ; Value: MBS("SendMail.SetHTMLText"; $EmailID; "<html><body>" & GetAsCSS(EMail::PlainText) & "</body></html>") ]
Set Variable [ $r ; Value: MBS("SendMail.SetPlainText"; $EmailID; EMail::PlainText) ]
See also
- Archive.CompressContainer
- Archive.CompressText
- Archive.Create
- SendMail.CreateEmail
- SendMail.GetPlainText
- SendMail.PrepareCURL
- SendMail.SetHTMLText
- SendMail.SetRichText
- Text.MergeFields
- Text.ReadTextFile
Example Databases
- CURL/Email/Batch Emailer
- CURL/Email/Build and send Email
- CURL/Email/Build and send HTML Email with inline graphics
- CURL/Email/Office 365 oAuth SMTP
Blog Entries
- Compress and Send
- SMTP with OAuth for Office 365 in FileMaker
- Sending email with a huge custom function
- Email Script for FileMaker
- Sending emails in FileMaker with MBS Plugin
- Sending Email with FileMaker via MBS Plugin
FileMaker Magazin
This function checks for a license.
Created 3th September 2014, last changed 15th October 2018