http://qs321.pair.com?node_id=1155581


in reply to Sending email with both html and plaintext

Hello mavericknik,

Are you looking at what you are sending or the way the email client displays your sent message. Usually if you have both text and html, a html enabled browser will show the html. (Note: I have never used either MIME::entity or Mail::Mailer).

On my email client ( Thunderbird ), you can type the ^U to see what is in the email. If that doesn't work you can save the file and using your favorite editor view the contents.

If the text and html are different then you may have to send a dummy text first, then the html and then the text data.

Regards...Ed

"Well done is better than well said." - Benjamin Franklin

Replies are listed 'Best First'.
Re^2: Sending email with both html and plaintext
by mavericknik (Sexton) on Feb 18, 2016 at 21:30 UTC
    Interesting. I use outlook, and the body is:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><h2 +>THIS IS HTML</h2>
    And the headers are:
    MIME-Version: 1.0 Subject: Test Message Content-Type: multipart/alternative; boundary="----------=_1455830463-9817-0" X-Mailer: MIME-tools 5.414 (Entity 5.414)
    Could be a problem with mail::mailer, not sure at this point.