BaldPenguin has asked for the wisdom of the Perl Monks concerning the following question:
$attachment is the XML data, $mime_type has been tried as 'application/vnd.ms-excel', 'text/xml', and 'text/plain', I have also tried binary, base64, and 8bit encoding in addition to quoted-printable.## snippet-begin ## my $msg = MIME::Lite->new( 'From' => $param{'from'}, 'To' => $param{'email'}, 'Subject' => 'Your Report - '.$param{'startdate'}.' to '.$param{'e +nddate'}, 'Type' => 'mulitpart/mixed', ); $msg->attach( 'Type' => 'TEXT', 'Data' => 'Here is the Report requested for dates '.$param{'startdate'}. +' to '.$param{'enddate'}, ); $msg->attach( 'Type' => $mime_type, 'Disposition' => 'attachment', 'Encoding' => 'quoted-printable', 'Filename' => 'provider_report'.$param{'format'}, 'Data' => $attachment, ); $msg->send; ## snippet-end ##
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with MIME::Lite Attachements
by BaldPenguin (Friar) on Aug 11, 2005 at 17:40 UTC | |
|
Re: Problems with MIME::Lite Attachements
by dorko (Prior) on Aug 11, 2005 at 18:32 UTC | |
|
Re: Problems with MIME::Lite Attachements
by borisz (Canon) on Aug 11, 2005 at 17:44 UTC | |
by BaldPenguin (Friar) on Aug 11, 2005 at 17:51 UTC |