$smtp->mail($from) or die $smtp->message();
and then you'll see exactly where your error is. Visual inspection of your code seems correct. It would be more helpful also if you show the actual error message you got *and* where you got it. There is no error reporting in the code you posted, so nobody knows for sure what is happening to you.
In reply to Re: Net::SMTP and the undefined value
by vkhera
in thread Net::SMTP and the undefined value
by Quicksilver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |