<?xml version="1.0" encoding="windows-1252"?>
<node id="62928" title="Re: SMTP and Authentication" created="2001-03-08 05:41:34" updated="2005-07-21 01:25:27">
<type id="11">
note</type>
<author id="45946">
Dragonfly</author>
<data>
<field name="doctext">
Another alternative that might work well for you, if you're simply trying to send mail from your script, is the &lt;a href="http://search.cpan.org/doc/GBARR/MailTools-1.15/Mail/Mailer.pm"&gt;Mail::Mailer&lt;/a&gt; module, which is quite simple to use and will autodetect your MTA (Message Transfer Agent) automagically.&lt;p&gt;
It's pretty slick and has worked very well for me; some of my scripts periodically poll different services on my OpenBSD boxes and kick out a report to me (using Mail::Mailer) if there is something I should know about. 
&lt;p&gt;
Interestingly, if Mail::Mailer can't detect Sendmail, mail, Mail, or mailx on your system, it will use the aforementioned Net::SMTP module to deliver your message. ;-)
</field>
<field name="root_node">
62677</field>
<field name="parent_node">
62677</field>
</data>
</node>
