in reply to Net::SMTP and SSL timeout problem
SOLVED... (I think!)
I lied with the sample code in my first post: the real code had some international chars (utf8) in the Subject field, which I translated into English for you.
For an unknown reason, those chars were not a problem for a standard connection to the SMTP server, but somehow locked the connection if it was using SSL, and a timeout from the server was the result.
Also, I hacked Cmd.pm to send "\r\n.\r\n" to the SMTP server at the dataend method instead of just ".\r\n" as an email body terminator while in SSL connection and the result was an email without timeout to be sent, but the header was corrupted, and that gave me a hint. After I encoded the Subject line, all was working like a charm.
I'll continue testing and let you know what is going on... I still have to add attachments to the email, so more encoding is on the go.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SMTP and SSL timeout problem
by cavac (Prior) on Jun 13, 2023 at 09:22 UTC | |
|
Re^2: Net::SMTP and SSL timeout problem
by NERDVANA (Priest) on Jun 16, 2023 at 00:38 UTC |