in reply to Re^6: Net::SMTP::SSL ACK!!
in thread Net::SMTP::SSL ACK!!

Subtle goofs in indirect object syntax do not always produce parse errors in my experience. Sometimes the code will parse fine, but give incorrect behavior at runtime.

More broadly, all versions of SSL are deprecated due to known security holes and TLS is the standard replacement. The server may be correctly configured to no longer accept SSL connections at all. The only good reason to be using SSL these days is to talk to an old server that does not support TLS. Is there a particular reason you want this connection to use SSL?

Replies are listed 'Best First'.
Re^8: Net::SMTP::SSL ACK!!
by noxxi (Pilgrim) on Jan 31, 2016 at 06:22 UTC

    This is not about modern TLS vs. old SSL. Net::SMTP::SSL vs. Net::SMTP::TLS is about implicit SSL/TLS (i.e. SMTPS, port 465) vs. explicit SSL/TLS (STARTTLS, port 25 or 587). And to add more to this naming confusion: TLS is actually just the new name for SSL, i.e. TLS 1.0 is SSL 3.1, TLS 1.2 is SSL version 3.3 etc. SSL 2.0 on the other hand is a very different protocol. This means that when somebody is talking about SSL or TLS or SSL/TLS they usually mean the same, except when they are talking about specific versions of the protocol.

    I personally would suggest to use new versions of Net::SMTP (starting with libnet 3.x) which now has support for both explicit and implicit SSL/TLS and also for IPv6 - how it should have been from the start. Thus all the various derivates like Net::SMTP::SSL, Net::SMTP::TLS (buggy and unmaintained since 2006), Net::SMTP::TLS::ButMaintained (unmaintained since 2013), Net::SMTPS are finally no longer needed.

        Ah so.

        So - What I really need is to make sure the version of Net::SMTP on the server is a current one so I don't need to worry about the TLS/SSL distinction and write to that.

        I should have been more clear, I guess. I'm in the slow process of updating some legacy web software. The 'original' code used Net::SMTP::TLS which was probably a shiny new Module when the code in that section was originally written.

        Now, off to rewrite some code using Net::SMTP and not worrying about Net::SMTP::TLS ...