The address is in the form:myname@somewhere.com.
Are you sure?
I'd be interested in seeing the STDERR of this (run as a cron)...
use Data::Dumper; $sender->MailFile( {to => $addr, subject => 'HP Notify Attachment', msg => "The attachment sent courtesy of $sname.", file => $fname }); warn "Unexpected addr: '$addr'" unless ($addr eq 'myname@somewhere.com'); warn Dump($sender);
As I recall, the only thing Mail::Sender ever does to a 'to' addr, is replace sequences of whitespaces with a single ", " -- so I would guess either you aren't including myname in your $addr properly, or you have some whitespace seperating if from @somewhere so your SMTP server winds up seeing:
To: myname, @somewhere.com
In reply to Re: Re: Re: Mail::Sender returns malformed address
by hossman
in thread Mail::Sender returns malformed address
by killraven
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |