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.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  


Adds a recipient.

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

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


Parameter Description Example value
EmailID The email reference number obtained using SendMail.CreateEmail function. $EmailID
Type The type of recipient. Can be TO, BCC, CC or ReplyTo. "CC"
Email The email address of the recipient. ""
Name Optional
Optional the name of the recipient. If this name contains special characters, it will be automatically encoded with UTF-8.
"John Miller"


Returns OK or error.


Adds a recipient.
This function can be used easily if the type is also a field in your database.
As an alternative you can of course also use SendMail.AddTo, SendMail.AddReplyTo, SendMail.AddCC or SendMail.AddBCC.

You can call this in a loop several times to add as many recipients as needed.

See also

SendMail.AddHeader   -   SendMail.AddReplyTo

Feedback: Report problem or ask question.

MBS Xojo Plugins