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. | |
Type | The type of recipient. Can be TO, BCC, CC or ReplyTo. | "CC" |
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
- SendMail.AddBCC
- SendMail.AddCC
- SendMail.AddRecipient
- SendMail.AddReplyTo
- SendMail.AddTo
- WinSendMail.AddBCC
- WinSendMail.AddCC
- WinSendMail.AddTo
- WinSendMail.ClearRecipients
Release notes
- Version 12.0
- Fixed a problem with WinSendMail.AddBCC, WinSendMail.AddCC, WinSendMail.AddRecipient, WinSendMail.AddTo not passing email when name is empty.
Blog Entries
This function checks for a license.
Created 28th February 2017, last changed 9th September 2020