Looking at user_mail I think that it would be nice to have a configurable set of standard headers that get added if the module does not define them before.

Headers I can think of are:

Errors-To
Reply-To
Organization
X-URL
X-Mailer

How would one do this?

Comments

claybutterfly’s picture

I want to assign this to myself...
The additional_headers we are missing are:

if (we want html-mails) {
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
}
$headers .= "From: ".$myname." \r\n";
$headers .= "To: ".$contactname." \r\n";
$headers .= "Reply-To: ".$myname." \r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";

Comes soon to the devel-list... =)

killes@www.drop.org’s picture

Title: user_mail extra headers » Re: [drupal-devel] feature #349 : user_mail extra headers

On 13 Mar 2003, Stefan wrote:

> if (we want html-mails) {
> $headers .= "MIME-Version: 1.0\r\n";
> $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

A correct MIME-header is usefull for plain text too.

> }
> $headers .= "From: ".$myname." \r\n";
> $headers .= "To: ".$contactname." \r\n";
> $headers .= "Reply-To: ".$myname." \r\n";

> $headers .= "X-Priority: 1\r\n";
> $headers .= "X-MSMail-Priority: High\r\n";

Are those two really usefull?

> $headers .= "X-Mailer: Just My Server";

Errors-To would sure be helpfull, Organization and X-URL nice.

> Comes soon to the devel-list... =)

Looking forward to this.

Cheers,
Gehrard

claybutterfly’s picture

Priority: Minor » Normal

Also look here, which I found a couple of minutes ago.
Thuis article is very interesting..

al’s picture

Title: Re: [drupal-devel] feature #349 : user_mail extra headers » user_mail extra headers
Kjartan’s picture

Component: User system » base system
Assigned: Unassigned » Kjartan

I'll look more closely into the mail capabilties of Drupal after the Drupal 4.3.0 release.

killes@www.drop.org’s picture

Apparently he did but forgot to close this issue.

Automatically closed due to inactivity (marked fixed for 14 days).