J
John
Hi
I have
use Net::SMTP;
use MIME::Lite;
... ... ...
MIME::Lite->send('smtp',$mail_host,TimeOut=>60);
$msg->send or die "error in email";
I thought the die would capture any error. If the email address is not
vaild I get:
Software error:
SMTP recipient() command failed:
5.1.1 <[email protected]>: Recipient address rejected: User unknown in
virtual alias table
Why isn't die capturing the error?
Regards
John
I have
use Net::SMTP;
use MIME::Lite;
... ... ...
MIME::Lite->send('smtp',$mail_host,TimeOut=>60);
$msg->send or die "error in email";
I thought the die would capture any error. If the email address is not
vaild I get:
Software error:
SMTP recipient() command failed:
5.1.1 <[email protected]>: Recipient address rejected: User unknown in
virtual alias table
Why isn't die capturing the error?
Regards
John