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

So I'm still missing some element (or there's something wrong) in
my $mailer = new Net::SMTP::SSL( $smtp_server, Hello => 'mydomain.com', Port => $port, Debug => 1, layer=> 'ssl', );
I've gone through the documentation for Net::SMTP::SSL and except for the layer => 'ssl' parameter, everything looks like the examples. Luckily this code isn't mission critical and I can fall back to TLS, but it would be nice to have it work with SSL.

Replies are listed 'Best First'.
Re^5: Net::SMTP::SSL ACK!!
by jcb (Parson) on Jan 30, 2016 at 02:49 UTC

    Try removing the parentheses or using the plain method call syntax Net::SMTP::SSL->new(args). I am uncertain whether a space between Net::SMTP::SSL and its arguments is required in indirect object syntax, but I recall having had similar syntax bugs in my own code.

      I've run a syntax check on it and it checks out okay, syntax-wise.

      I'm now wondering if there's server configuration that's not quite right. If so, it may take me a while to figure it out.

        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?