Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Sending email with both html and plaintext

by mavericknik (Sexton)
on Feb 19, 2016 at 18:14 UTC ( #1155654=note: print w/replies, xml ) Need Help??


in reply to Re^3: Sending email with both html and plaintext
in thread Sending email with both html and plaintext

But that just makes my email have 2 attachments, I want both in the body not as attachments.
  • Comment on Re^4: Sending email with both html and plaintext

Replies are listed 'Best First'.
Re^5: Sending email with both html and plaintext
by soonix (Canon) on Feb 19, 2016 at 20:14 UTC
    You can only have 1 body, and a body consisting of both plain text and HTML is simply not possible. The first plain text attachment apparently ends up as body, so you could make that an explaining text.

    If you want it all in the body, you could incorporate the plain text part as a <pre>-formatted part into the HTML and use that as body. I prefer plain text mails, therefore haven't done that yet, but it should work that way, too.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2022-12-08 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?