How can I add custom mail headers?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
pinuts
Posts: 2
Joined: 27 Jan 2006, 09:15

How can I add custom mail headers?

Post by pinuts »

Hello,

we want to send custom mail headers to let the users filter by them.

I added this code to email_api.php in the function email_generic:

Code: Select all

# @@@ kurlvink: Send the notify type as Header
if ( !is_array( $p_header_optional_params ) ) {
       $p_header_optional_params = array();
}
$p_header_optional_params[]="Mantis-Notify-Type: " . $p_notify_type;
Then I send a reminder to myself.

However, I don't see the headers in the mail source.

What is the correct way to add custom mail headers to notification mails?

Bye,
Oliver
Post Reply