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

Thanks for your reply Derby&WW

Thing is i am writing a generic script which can accpet n number of attachements(plain/html/pdf/csv -- here i need to find out the attachment type programatically). the first attachement should go as the email body content(can be plain/html) and the rest of the attachemnts as attached to email. Able to attach any number of attachements. but failing to attach the first one inside the body of the email( is also going as external attachment).

Any cool way to achive this ??

  • Comment on Re^4: MIME Lite no line feed in Message body

Replies are listed 'Best First'.
Re^5: MIME Lite no line feed in Message body
by Anonymous Monk on Jun 27, 2011 at 12:19 UTC
Re^5: MIME Lite no line feed in Message body
by sudheer157 (Initiate) on Jun 27, 2011 at 15:09 UTC
    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

      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.