Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WinSendMail.AddRecipient

Adds a recipient.

Component Version macOS Windows Linux Server iOS SDK
WinSendMail 7.1 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "WinSendMail.AddRecipient"; WinSendMailRef; Type; Email; Name )   More

Parameters

Parameter Description Example
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 The name of the recipient.
Not optional when using MAPI with Outlook.
"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

Release notes

Blog Entries

This function checks for a license.

Created 28th February 2017, last changed 9th September 2020


WinSendMail.AddCC - WinSendMail.AddTo