in reply to Re^4: MIME Lite no line feed in Message body
in thread MIME Lite no line feed in Message body

I don't have access to other perl email modules other than MIME:Lite here is the scenario
$file='file.html'; $mime_msg->attach(Type => 'text/html', Path => $file, Filename => $fil +e ) or die "Error attaching html: $!\n";

is working fine and content of file.html is coming as body of the email.


problem scenarioo

$file='file.html'; $mime_msg->attach(Type => 'text/html', Path => $file, Filename => $fil +e ) or die "Error attaching html: $!\n"; $file2='attach.csv'; $mime_msg->attach(Type => 'application/csv', Path => $file2, Filename +=> $file2 ) or die "Error attaching html: $!\n";

in this case both files are coming as attachments, i am expecting the first file file.html to be body of the email and attach.csv as an attachment. Any reason for this

Replies are listed 'Best First'.
Re^6: MIME Lite no line feed in Message body
by ww (Archbishop) on Jun 27, 2011 at 20:56 UTC
    Try Super Searching the Monastery for "Even you can use CPAN."

    Asserted inability to use other modules, unless backed by a convincing, legal argument upon which continued employement is contingent, doesn't wash.

Re^6: MIME Lite no line feed in Message body
by Anonymous Monk on Jun 28, 2011 at 09:26 UTC