Changing From: in PEPr mails

From: Date: Sat, 28 Aug 2004 21:51:30 +0000
Subject: Changing From: in PEPr mails
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-3031@lists.php.net to get a copy of this message
Guys, I'd like to change PEPr so that emails generated by the system do not use From: "PEPr" <pear-sys@php.net> but instead use the email address of the current user: if (isset($auth_user)) { $from = 'From: "' . $auth_user->name . '" <' . $auth_user->email . '>'; } else { $from = 'From: "PEPr" <pear-sys@php.net>'; } This will break some filters out there, but the advantage will be that it will be much more easier to spot a comment by a specific developer in mail clients. Objections? -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.webmaster (#3031) next »