in reply to Net::SMTP auth login fails - passes in username twice!

I'm having this same problem (yes, seven years later) and this is the only post I've found that matches.

As part of some trial and error I was doing to try to understand what the code (I'm not very good at perl syntax), I tried changing the name of the auth function in SMTP_auth. I was surprised to get an error saying perl could not find the function in Net::SMTP::_SSL. So I changed the ISA in Net::SMTP::_SSL from Net::SMTP to Net::SMTP_auth and AUTH LOGIN worked! I'm not sure how a call to Net::SMTP_auth->auth() ended up getting routed through Net::SMTP::_SSL but it's clear that doing so would be a problem since the auth in Net::SMTP::_SLL has a different number of parameters from the one in Net::SMTP_auth.

So, while I don't have a fix for the problem (other than to hack the ISA in Net::SMTP::_SSL), I'm hoping someone smarter than me can use what I've found to make a proper fix.

  • Comment on Re: Net::SMTP auth login fails - passes in username twice!

Replies are listed 'Best First'.
Re^2: Net::SMTP auth login fails - passes in username twice!
by noxxi (Pilgrim) on Dec 31, 2016 at 08:10 UTC
    There is a huge difference in the versions of Net::SMTP between 2009 and 2016 and you are fiddling in your post which parts which did not even exist in 2009 (i.e. SSL support). If you really want to have help in your problem please ask a new question with a proper problem description, way to reproduce the problem and the Perl and Net::SMTP version you use. Based on this one could actually try to help you.