xb666 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl # use strict; use warnings; use Net::SMTP; use MIME::Lite; sub main { my ($rcpt,$fn) = @_; my $msg; $msg = MIME::Lite->new( To =>$rcpt, From =>'delps.demo%marviq.com', Subject =>'Click and Claim faxprobleem', Type =>'multipart/mixed' ); $msg->attach( Type => 'text/html', Encoding => 'quoted-printable', Path =>$fn ); if ($msg->send()) { print "Success\n"; } else { print "Failed\n"; } } exit (&main(@ARGV) ? 0 : -1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting the exit status from a pm
by gargle (Chaplain) on Sep 12, 2005 at 09:59 UTC | |
|
Re: Getting the exit status from a pm
by gargle (Chaplain) on Sep 12, 2005 at 12:00 UTC |