in reply to Using MIME::Lite in perl.
my $msg = new MIME::Lite( From => $defaults{EMAIL_FROM}, To => $defaults{EMAIL_TO}, Subject => $defaults{EMAIL_SUBJECT}, Type => 'text/plain' ); $msg->attach( Type => 'text/html', Encoding => '8bit', Path => "$defaults{REPORT_DIR}$defaults{REPORT_FILE_N +AME}", ); MIME::Lite->send( 'smtp', 'localhost', Timeout => 20 ); my ($result) = $msg->send();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using MIME::Lite in perl.
by demerphq (Chancellor) on Jul 17, 2002 at 09:53 UTC |