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.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Adds a recipient.

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


Parameter Description Example value
WinSendMailRef The email reference number obtained using WinSendMai.CreateEmail function. $Email
Email The email address of the recipient. ""
Name Optional
Optional the name of the recipient.
"John Miller"


Returns OK or error.


Adds a recipient.
See also WinSendMail.AddRecipient.
You can call this method several times to add several recipients.

Some mail clients (Outlook) may fail if name is missing.

This address is provider-specific message delivery data. Generally, the messaging system provides such addresses for inbound messages. For outbound messages, the Address member can point to an address entered by the user for a recipient not in an address book (that is, a custom recipient). The format of an address pointed to by the Address member is [address type][e-mail address]. Examples of valid addresses are FAX:206-555-1212 and SMTP:M@X.COM.


Add To recipient:

MBS( "WinSendMail.AddTo"; $Mail; "test@test.test"; "Test Tester" )

See also

Example Databases

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

WinSendMail.AddRecipient   -   WinSendMail.AttachmentCount

Feedback: Report problem or ask question.

MBS Xojo Plugins