Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

SendMail.AddHeader

Adds an header to the email.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SendMail 4.3 Yes Yes Yes Yes Yes

MBS( "SendMail.AddHeader"; EmailID; Header )

Parameters

Parameter Description Example value
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")

See also


SendMail.AddCC   -   SendMail.AddRecipient

Feedback: Report problem or ask question.




Links
MBS FileMaker blog