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  

SendMail.AddTo

Adds a recipient.

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

MBS( "SendMail.AddTo"; EmailID; Email { ; Name } )

Parameters

Parameter Description Example value
EmailID The email reference number obtained using SendMail.CreateEmail function. $EmailID
Email The email address of the recipient. "test@mbsplugins.de"
Name Optional
Optional the name of the recipient. If this name contains special characters, it will be automatically encoded with UTF-8.
"John Miller"

Result

Returns OK or error.

Description

Adds a recipient.
See also SendMail.AddRecipient.

Examples

Start new email and add recipients:

Set Variable [$EmailID; Value:MBS("SendMail.CreateEmail")]
Set Variable [$r; Value:MBS("SendMail.AddTo"; $EmailID; "Jens@mbsplugins.test"; "Jens Müller")]
Set Variable [$r; Value:MBS("SendMail.AddCC"; $EmailID; "John@mbsplugins.test"; "John Miller")]
Set Variable [$r; Value:MBS("SendMail.AddBCC"; $EmailID; "Bob@mbsplugins.test"; "Bob Jones")]

See also


SendMail.AddReplyTo   -   SendMail.AttachmentCount

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins