Where did all the newlines go?

The stuff you pasted seems very disconnected from itself and unlike anything I see in the documentation -- typical Khen1950fx junk -- sorry about that, I usually try to point-out his nonsense, but I shy away from email threads

What you want to try is delete all SASL stuff from you code and add only this

$NetSMTP->auth( $user, $pass );
and Net::SMTP will try to load Authen::SASL... if the remote server demands it... and it should just work.

Through UTSLing I learned you can also write  $NetSMTP->auth( Authen::SASL->new(...) ); if you need more customization

If it doesn't, well, you'll need to copy Net::SMTP_auth exactly

as I can't ask multiple ISP's for our customers to install SMTP_auth.

See also Yes, even you can use CPAN, Top 11 (GOOD) reasons not to use someone else's Modules, Top Seven (Bad) Reasons Not To Use Modules


In reply to Re: Authen::SASL error by Anonymous Monk
in thread Authen::SASL error by mwhiting

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.