Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SendMail.AddHeader
Adds an header to the email.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SendMail | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
EmailID | The email reference number obtained using SendMail.CreateEmail function. | $EmailID |
Header | The new header entry. Passed to CURL later without modification. Since version 6.4 this can be a list of headers. |
"X-Company: Test Inc" |
Result
Returns OK or error.
Description
Adds an header to the email.This header is passed as is and not preprocessed.
You can use this function to pass custom headers for "X-Universally-Unique-Identifier:", "Date:", "X-Mailer:", "Message-Id:" and "Mime-Version:".
If you pass header without text following ":", the header is not included.
Examples
Add company name:
MBS("SendMail.AddHeader"; $EmailID; "X-Company: Your Company Name")
Add X-URL header:
MBS("SendMail.AddHeader"; $EMailID; "X-URL: http://www.myurl.com")
Add high priority:
MBS("SendMail.AddHeader"; $EMailID; "X-Priority: 1")
Add low priority:
MBS("SendMail.AddHeader"; $EMailID; "X-Priority: 5")
Add language
MBS("SendMail.AddHeader"; $EMailID; "Content-Language: de")
Request read receipt:
MBS("SendMail.AddHeader"; $EMailID; "Disposition-Notification-To: email@server.de")
Set email app:
MBS("SendMail.AddHeader"; $EMailID; "X-Mailer: FMCompanyManagerX")
Request return receipt:
MBS("SendMail.AddHeader"; $EMailID; "Return-Receipt-To: \"Test Software\" <admin@testsoft.com>" )
See also
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 3th September 2014, last changed 26th February 2020