in reply to Re^4: MIME Lite no line feed in Message body
in thread MIME Lite no line feed in Message body
$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 | |
|
Re^6: MIME Lite no line feed in Message body
by Anonymous Monk on Jun 28, 2011 at 09:26 UTC |