Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Sending email with both html and plaintext

by flexvault (Monsignor)
on Feb 18, 2016 at 20:34 UTC ( #1155581=note: print w/replies, xml ) Need Help??

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.


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

  • Comment on Re: Sending email with both html and plaintext

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1155581]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2023-06-02 04:36 GMT
Find Nodes?
    Voting Booth?

    No recent polls found