http://www.perlmonks.org?node_id=177012

c has asked for the wisdom of the Perl Monks concerning the following question:

The perldoc for mail::send shows that you can set headers for email being sent using the module. Although their are methods to set the To: Subject: and Cc: fields...

$msg->to('user@host'); $msg->subject('example subject'); $msg->cc('user@host');

There doesnt seem to be any a method for setting the From: field save using the $msg->set(); method, which has a description as:

$msg->set($header, @values); $msg->add($header, @values); $msg->delete($header);

I tried the following:

$msg->set("From","helpful\@mydomain.com");

I also tried "From: ", "From:" and "Its Me <helpful\@mydomaind.com>" but none gave any different results. I'm thinking that my syntax is wonky somewhere along the way. Can someone point out the correct method?

thanks -c