Re: [pear-webmaster] Changing From: in PEPr mails
| From: | Klaus Guenther | Date: | Sat, 28 Aug 2004 22:31:50 +0000 |
| Subject: | Re: [pear-webmaster] Changing From: in PEPr mails | ||
| References: | 1 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-3034@lists.php.net to get a copy of this message | ||
+1
Martin Jansen wrote:
Guys, I'd like to change PEPr so that emails generated by the system do not useFrom: "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?