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 apa...@mydomain.com instead of > myn...@mydomain.com. > > 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. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/