Re: how to change [email protected] to [email protected] for emails sent out
[email protected] (David Dorward) Fri, 26 Feb 2010 15:56:57 +0000
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <[email protected]> |
On 25 Feb 2010, at 19:17, kitty wrote: > Even though I can change the sender full name from Apache to MyName > for the emails sent out from the server. But in the email header > details, it still shows from [email protected] instead of > [email protected]. >=20 > The code in perl that I use is: > open (MAILHANDLE,"| mail $address -s \"$subject\" -- -F MyName \n"); Use an abstraction layer: http://search.cpan.org/perldoc?Email::Sender http://search.cpan.org/perldoc?Email::Sender::Manual::QuickStart has an = example of what you want to do. --=20 David Dorward http://dorward.me.uk