Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WinSendMail.AddTo
Adds a recipient.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WinSendMail | 7.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "WinSendMail.AddTo"; WinSendMailRef; Email { ; Name } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
WinSendMailRef | The email reference number obtained using WinSendMai.CreateEmail function. | ||
The email address of the recipient. | "SMTP:test@mbsplugins.de" | ||
Name | Optional the name of the recipient. | "John Miller" | Optional |
Result
Returns OK or error.
Description
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.
Examples
Add To recipient:
MBS( "WinSendMail.AddTo"; $Mail; "test@test.test"; "Test Tester" )
See also
- SendMail.AddRecipient
- SendMail.AddTo
- WinSendMail.AddBCC
- WinSendMail.AddCC
- WinSendMail.AddRecipient
- WinSendMail.CreateEmail
Release notes
- Version 12.0
- Fixed a problem with WinSendMail.AddBCC, WinSendMail.AddCC, WinSendMail.AddRecipient, WinSendMail.AddTo not passing email when name is empty.
Example Databases
Blog Entries
This function checks for a license.
Created 28th February 2017, last changed 21st September 2018