Hi Monks. I have a script that has been sending mail using Net::SMTP for a while now quite successfully. I recently was asked by my supervisor to add the ability to authenticate in that email script. I added the use Net::SMTP_auth() statement, and then got messages saying it can't find that package. ("Can't locate Net/SMTP_auth.pm")

Another server that I access sometimes also doesn't seem to know what SMTP_auth is. Is it part of the usual Perl? I thought it would be in there by now. I'm on Perl 5.8.4 & 5.8.8 on another server.

I found the post which lists the source code at http://www.perlmonks.org/?node_id=110334 but it's there as a package. I would perhaps need to cut & paste the code into my code??? but it would need modifications for that. Actually, can I used authentication with just Net::SMTP?

Any help you can offer would be great.


In reply to Net::SMTP_auth install & usage 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.