Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
SendMail.AddHeader
Adds an header to the email.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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
Created 3th September 2014, last changed 26th February 2020
SendMail.AddCC - SendMail.AddRecipient
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos