Zitoune has asked for the wisdom of the Perl Monks concerning the following question:
$msg = MIME::Lite->new( From =>"Me", To =>'Someone', Subject =>'Zip Files', Type =>'Application/zip', Encoding =>'base64', Path =>'Dummy.zip' ); $str = $msg->as_string; #$smtp = Net::SMTP->new("mailhost"); $smtp->mail($ENV{USERNAME}); $smtp->to(you@you.com); $smtp->data(); $smtp->datasend($str); $smtp->dataend(); $smtp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Send an E-mail using NET::SMTP
by tcf22 (Priest) on Oct 09, 2003 at 20:05 UTC | |
by Zitoune (Beadle) on Oct 09, 2003 at 20:48 UTC | |
by Jenda (Abbot) on Oct 09, 2003 at 21:16 UTC | |
by Zitoune (Beadle) on Oct 10, 2003 at 12:25 UTC | |
by Jenda (Abbot) on Oct 10, 2003 at 18:46 UTC | |
|
Re: Send an E-mail using NET::SMTP
by phydeauxarff (Priest) on Oct 09, 2003 at 20:21 UTC |