in reply to Send Mail Attachment

Tutorials -> How to RTFM

`perldoc MIME::Lite'

...

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 :)

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Send Mail Attachment
by Anonymous Monk on Oct 07, 2003 at 14:06 UTC
    Thank you!!!! It now works.