All,
In #perl tonight, a question was asked about a SMTP module that supported both SSL and authentication. A quick search of CPAN turned up Net::SMTP::SSL and Net::SMTP_auth, but nothing that combined the two.

I jokingly said if I had more than 14 minutes until Jeapordy started, I would whip something up. Then I looked under the hood. Net::SMTP::SSL basically just uses IO::Socket::SSL and does some symbol table manipulation. Net::SMTP_auth inherits from Net::SMTP and add a couple of new methods.

I offered that all one would have to do is change two lines in Net::SMTP_auth:

In your main script, you use Net::SMTP_auth which can now do everything you want. Unfortunately, the person asking didn't have a test script.

Anyone out there able to test and verify this for me? I would first attempt to contact the author to add this support and if that doesn't work upload something myself.

Cheers - L~R

Update: It works! naChoZ was kind enough to point out that anyone with a gmail account can try this themselves.


In reply to SMTP Module Supporting SSL and Authentication? by Limbic~Region

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.