in reply to Send Mail Attachment
...
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
...
MIME::Lite->send()
When used as a classmethod, this can be used to specify a different
default mechanism for sending message. The initial default is:
MIME::Lite->send("sendmail", "/usr/lib/sendmail -t -oi -oem");
However, you should consider the similar but smarter and taint-safe
variant:
MIME::Lite->send("sendmail");
Or, for non-Unix users:
MIME::Lite->send("smtp");
send either calls send_by_sendmail or send_by_smtp, you can RTFM further if you're interested.
The F in RTFM is what you make of it, so make it good :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Send Mail Attachment
by Anonymous Monk on Oct 07, 2003 at 14:06 UTC |