Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Sending email with both html and plaintext

by RonW (Parson)
on Feb 19, 2016 at 20:48 UTC ( [id://1155669]=note: print w/replies, xml ) Need Help??


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

The only way to guarantee everything in the message will be treated as being in the body of the message is to put everything in the first (or only) part of the message.

When mixing plain text with HTML, you can surround the plain test with <tt> ... </tt> tags. Or you can use a text-to-html filter to reformat your text into html.

If your message's main body is in html, you can "embed" attachments in the main body and they will be displayed as part of the main body. This is done using the <embed> or <object> tags to refer to the individual attachments. The are not actually embedded in the main body, merely "included by reference". But this is still relying on HTML tricks. The reason for doing this would be so the "extra" content you are including in the body is also available for individually saving without duplicating the content in the body and as attachments.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found