santhi has asked for the wisdom of the Perl Monks concerning the following question:
my ($msg, $to_list, $cc_list, $subject, $MailFrom, $email, $file); $MailFrom = xxx@abc.com; $email = "Test data you got"; $subject = "Test mail"; $to_list = "santhi@xx.com"; $cc_list = "santhi@xx.xom"; $file = "newfile.tar"; $msg = MIME::Lite->new( From => $MailFrom, To => $to_list, Cc => $cc_list, Subject => $subject, Type => 'TEXT', Encoding => '7bit', Data => $email ); ### Attach a part... the make the message a multipart automatically: $msg->attach(Type => 'application/x-tar', Encoding => 'base64', Path => "$file" ); $msg->send() ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem in sending "tar" files as attachment using MIME::Lite module
by imp (Priest) on Dec 20, 2006 at 06:21 UTC | |
by santhi (Monk) on Dec 20, 2006 at 07:21 UTC | |
by graff (Chancellor) on Dec 20, 2006 at 09:24 UTC | |
by derby (Abbot) on Dec 20, 2006 at 12:03 UTC |