crmpicco
11-22-2006, 04:58 PM
I have this code, and I am trying to send a .zip file as an attachment in an email
with Perl:
use MIME::Lite;
####### EMAIL #######
$msg = MIME::Lite->new(
From => "crmpicco\@picco.net (Picco)",
To => "craig\@tek.net",
Subject => "Properties",
Type => "multipart/mixed"
);
$msg->attach(Type => "TEXT", Data => "Attached to this email is a ZIP file");
$msg->attach(Type => "zip", Path => "/web/picco/data/crmpicco_111.zip", Filename => "crmpicco_111.zip");
$text = $msg->as_string;
$msg->send;
####### EMAIL #######
any help appreciated.
with Perl:
use MIME::Lite;
####### EMAIL #######
$msg = MIME::Lite->new(
From => "crmpicco\@picco.net (Picco)",
To => "craig\@tek.net",
Subject => "Properties",
Type => "multipart/mixed"
);
$msg->attach(Type => "TEXT", Data => "Attached to this email is a ZIP file");
$msg->attach(Type => "zip", Path => "/web/picco/data/crmpicco_111.zip", Filename => "crmpicco_111.zip");
$text = $msg->as_string;
$msg->send;
####### EMAIL #######
any help appreciated.