killraven has asked for the wisdom of the Perl Monks concerning the following question:
Here's my code:Server error: 553 malformed address: <@somewhere.com>
It doesn't seem to matter if I wrap the address in quotes or not. I've even gone to the trouble to hardcode the address on the 'to' line. The code works fine as long as it's not in cron. Does anyone have any ideas? Thanks in advance, killravenref ($sender = new Mail::Sender()) or die "From $sname: $Mail::Sender::Error\n"; (ref ($sender->MailFile( {to => $addr, subject => 'HP Notify Attachment', msg => "The attachment sent courtesy of $sname.", file => $fname })) ) or die "From $sname: $Mail::Sender::Error\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::Sender returns malformed address
by talexb (Chancellor) on Mar 25, 2002 at 15:10 UTC | |
by killraven (Novice) on Mar 25, 2002 at 18:55 UTC | |
|
Re: Mail::Sender returns malformed address
by particle (Vicar) on Mar 25, 2002 at 15:09 UTC | |
by killraven (Novice) on Mar 25, 2002 at 18:47 UTC | |
by hossman (Prior) on Mar 25, 2002 at 22:24 UTC | |
by killraven (Novice) on Mar 26, 2002 at 16:22 UTC | |
by killraven (Novice) on Mar 26, 2002 at 18:13 UTC | |
by zentara (Cardinal) on Mar 25, 2002 at 21:38 UTC |