Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started
by Ben Forta, Raymond Camden, Charlie Arehart
Sending HTML-Formatted Mail
As noted in Table 21.1, you can set the optional type attribute of the <cfmail> tag to HTML, which enables you to use ordinary HTML tags to add formatting, images, and other media elements to your mail messages.
The following rules apply:
The recipient’s email client program must be HTML enabled. Most modern email clients, such as Outlook Express or Thunderbird, know how to display the contents of email messages as HTML. However, if the message is read in a program that isn’t HTML enabled, the user will see the message literally, including the actual HTML tags.
The mail message should be a well-formed HTML document, including. opening and closing <html>, <head>, and <body> tags.
All references to external URLs must ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access