in reply to Send mail error

What error are you getting? Have you tried wrapping the $msg->send() inside an eval?

Replies are listed 'Best First'.
Re^2: Send mail error
by bellaire (Hermit) on Nov 22, 2009 at 21:58 UTC
    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.