Home  |  Linux  | Mysql  | PHP  | XML
From:David Dorward Date:Fri Feb 26 15:56:57 2010
Subject:Re: how to change apache@mydomain.com to myname@mydomain.com for emails sent out

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

Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next


Your recent visits
how to change apache@mydomain.com to myname@mydomain.com for emails sent out
Re: CGI-BIN Help/Advise - editing a file - HOW ?
AW: CGI-BIN Help/Advise - editing a file - HOW ?
Re: Global scope
Global scope



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants