in reply to How to tell if a server has Sendmail?
Also, consider using MIME::Lite, it's really nice. :) From the docs:[jeffa@localhost]$ perl -le'print "yes" if -d "/usr/sbin/sendmail"' [jeffa@localhost]$ perl -le'print "yes" if -e "/usr/sbin/sendmail"' yes
Change how messages are sent ### Do something like this in your 'main': if ($I_DONT_HAVE_SENDMAIL) { MIME::Lite->send('smtp', "smtp.myisp.net", Timeout=>60); } ### Now this will do the right thing: $msg->send; ### will now use Net::SMTP as shown above
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to tell if a server has Sendmail?
by asarih (Hermit) on Sep 02, 2003 at 15:44 UTC |