in reply to Re: MIME::Lite
in thread MIME::Lite

This code won't work, as it doesn't actually send the message. To specify the method to send a message, you call send as a class method, but you still have to call it with the object to send as well, so in order to force it to send through sendmail, you would do this:

MIME::Lite->send("sendmail", "sendmail -t -oi -oem"); $msg->send();

You can also call it without specifying the sendmail command as MIME::Lite->send("sendmail"); $msg->send(); and MIME::Lite will use it's default arguments to sendmail, which should be good for most cases.


We're not surrounded, we're in a target-rich environment!

Replies are listed 'Best First'.
Re: Re: Re: MIME::Lite
by Mr. Muskrat (Canon) on Apr 08, 2003 at 16:41 UTC

    D'oh! I totally messed that one up.