You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

mail_add_header()

Usage

mail_add_header(name, value)

Description

Adds a custom header to the mail.

Note

RFC 822 headers must contain only US-ASCII characters, so a header that contains non US-ASCII characters must have been encoded as per the rules of RFC 2047. Adding a non-compliant header will result in an error upon calling the mail_send() function.

Example

${mail_add_header('X-Mailer', 'Structr')}

Search results for "mail_add_header()"

mail_add_header()

Adds a custom header to the mail.

mail_add_header(name, value)