Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Send mail errorby bellaire (Hermit) |
on Nov 22, 2009 at 21:58 UTC ( [id://808683]=note: print w/replies, xml ) | Need Help?? |
Indeed, the internals to MIME::Lite will die if the RECIPIENT command fails when sending via SMTP, such as if the e-mail address is invalid (see the latest source in the send_by_smtp method). The easiest way around this is to wrap the send call inside an eval.
Barring that, you'll have to use something else other than MIME::Lite's send, such as utilizing another module.
In Section
Seekers of Perl Wisdom
|
|