in reply to Net::SMTP and SSL timeout problem

I use Net::SMTPS and it works very well for the task. I have no idea how well/poorly it performs on MSWin32.


🦛

Replies are listed 'Best First'.
Re^2: Net::SMTP and SSL timeout problem
by vitoco (Hermit) on Jun 10, 2023 at 00:19 UTC

    I only changed my script to use Net::SMTPS module and the email was sent because it ignored the original SSL option in the new method and used a standard connection. Then I added the doSSL option and the script failed with a certificate error:

    DEBUG: .../IO/Socket/SSL.pm:2858: local error: hostname verification failed

    It's strange, because using Net::SMTP there was no certificate error as it authenticated through SSL, accepted the mail header and body, but it did not finished the connection (sending the "." after the body).

    BTW, in the meantime, I tried to use Email::Sender::Simple which I used in another project some years ago, and now it also failed with a timeout. I checked, and it uses Net::SMTP methods!!!