Email – Multipart Email with HTML/Plaintext

It is often quite usefull to be able to send an email with HTML for those that can support it, and Plaintext, for those who do not.

There is how you can send a ‘multipart’ email with ColdFusion.

<cfmail from=”" to=”" subject=”">
<cfmailpart type=”text/plain”>
Plain text goes here
</cfmailpart>
<cfmailpart type=”text/html”>
HTML version goes here
</cfmailpart>
</cfmail>

Bookmark and Share

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">