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.


In reply to Re: Net::SMTP auth login fails - passes in username twice! by ultrarunner
in thread Net::SMTP auth login fails - passes in username twice! by m0thr4

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.