in reply to Using MIME::Lite with TLS
The code
*MIME::Lite::send_by_smtp_tls = sub { ... }
installs the subroutine send_by_smtp_tls into MIME::Lite. I guess that it is all you need to later call
$mail->send_by_smtp_tls();
But as you left out the important part of it all, the code for send_by_smtp_tls, I don't know. Maybe the usage is
MIME::Lite->send('smtp_tls', $mail_host, Timeout=>60); $msg->send;
instead.
|
|---|