Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SendMail.AddRecipient
Adds a recipient.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SendMail | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "SendMail.AddRecipient"; EmailID; Type; Email { ; Name } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
EmailID | The email reference number obtained using SendMail.CreateEmail function. | $EmailID | |
Type | The type of recipient. Can be TO, BCC, CC or ReplyTo. | "CC" | |
The email address of the recipient. | "test@mbsplugins.de" | ||
Name | Optional the name of the recipient. If this name contains special characters, it will be automatically encoded with UTF-8. | "John Miller" | Optional |
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 SendMail.AddTo, SendMail.AddReplyTo, SendMail.AddCC or SendMail.AddBCC.
You can call this in a loop several times to add as many recipients as needed.
Please make sure the email addresses are syntactically correct.
Examples
Add email address for a carbon copy:
MBS( "SendMail.AddRecipient"; $email; "CC"; "test@mbsplugins.de"; "Bob Miller")
See also
- SendMail.AddBCC
- SendMail.AddCC
- SendMail.AddReplyTo
- SendMail.AddTo
- SendMail.ClearRecipients
- SendMail.CreateEmail
- WinSendMail.AddBCC
- WinSendMail.AddCC
- WinSendMail.AddRecipient
- WinSendMail.AddTo
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
- MBS Plugin Advent calendar: 21 - SendMail
- Use Inline Graphics in Emails
- Sending Email with FileMaker via MBS Plugin
FileMaker Magazin
This function checks for a license.
Created 5th September 2014, last changed 9th September 2019