Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have written a lightweight application that needs to send small emails. This application must be able to run unaltered on both UNIX and Windows machines. I originally used Mail::Sendmail, which worked fine until we deployed our application to a site where the outgoing SMTP server required authentication. Not all our sites support authentication for outgoing email. Furthermore, some sites may require SSL/TLS encryption for submitting authentication credentials. So, whatever I use it has to be flexible enough to be used in any of these situations.
  • Comment on Need Flexible, Lightweight, Platform-Independent Mail Capability

Replies are listed 'Best First'.
Re: Need Flexible, Lightweight, Platform-Independent Mail Capability
by NetWallah (Canon) on Jun 25, 2008 at 01:07 UTC
    You probably want Net::SMTP::TLS.

    This provides a superset of all the options you need, and you can turn each one (including TLS) off independently.

         Have you been high today? I see the nuns are gay! My brother yelled to me...I love you inside Ed - Benny Lava, by Buffalax

Re: Need Flexible, Lightweight, Platform-Independent Mail Capability
by Tanktalus (Canon) on Jun 24, 2008 at 23:46 UTC

    So, um, what have you got so far, and what seems to be the problem you're currently stuck with?

    (Or are you asking someone to write it for you? I'm not sure...)

      Net::SMTP is part of the core modules; you can use CPAN's Net::SMTP::SSL and Net::SMTP::TLS if you would like.