Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

WinSendMail.AddRecipient

Adds a recipient.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WinSendMail 7.1 No Yes No No No
MBS( "WinSendMail.AddRecipient"; WinSendMailRef; Type; Email { ; Name } )   More

Parameters

Parameter Description Example value
WinSendMailRef The email reference number obtained using WinSendMai.CreateEmail function. $Email
Type The type of recipient. Can be TO, BCC, CC or ReplyTo. "CC"
Email The email address of the recipient. "SMTP:test@mbsplugins.de"
Name Optional
Optional the name of the recipient.
"John Miller"

Result

Returns OK or error.

Description

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 WinSendMail.AddTo, WinSendMail.AddReplyTo, WinSendMail.AddCC or WinSendMail.AddBCC.
You can call this method several times to add several recipients.

Email addresses need to be prefixed with "SMTP:".

See also

Created 28th February 2017, last changed 21st September 2018


WinSendMail.AddCC   -   WinSendMail.AddTo

Feedback: Report problem or ask question.




Links
MBS Xojo blog