Closed (fixed)
Project:
Drupal core
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
17 Jun 2002 at 15:28 UTC
Updated:
23 Aug 2004 at 01:20 UTC
Jump to comment: Most recent
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
Comment #1
claybutterfly commentedI 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... =)
Comment #2
killes@www.drop.org commentedOn 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
Comment #3
claybutterfly commentedAlso look here, which I found a couple of minutes ago.
Thuis article is very interesting..
Comment #4
al commentedComment #5
Kjartan commentedI'll look more closely into the mail capabilties of Drupal after the Drupal 4.3.0 release.
Comment #6
killes@www.drop.org commentedApparently he did but forgot to close this issue.