Brian & Laura McGarvie
Welcome to Brian and Laura McGarvie’s homepage, find out more information on Brian M McGarvie and his it consultancy, and about our personal adventures and experiances…

Email - Multipart Email with HTML/Plaintext

July 25th, 2007 by Brian M McGarvie

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>

Posted in ColdFusion, Programming

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.