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
|