thanks Michael!
John
On Aug 26, 2008, at 7:45 PM, Michael V. Rigsby wrote:
> Cold fusion will error if you use a single # inside a cfoutput or
> certain tags. In order to use a single # you need to escape it with
> another #.
>
> Example: john{font-family:"Lucida Grande"; font-size:9px; color:
> ##FF0000}
>
>
> -----Original Message-----
> From: John Barrett [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 27, 2008 1:27 AM
> To: CF-Newbie
> Subject: cfmail +css
>
> Hi, I am trying to add styles to a cfmail app. This is just
> testing, as
> the final one will look like a web-page, but be delivered over e0,ail
> using cfmail. I see this all the time, and even hostmysite sends me
> mails like this.
>
> Is there a reason why I can't use color:#FF0000 for red? when I
> have red
> in the color in the style tag, it works, and sends the mail, but if I
> use the color code, I get an CF error.
>
> --------Error Message----------------
> Invalid CFML construct found on line 16 at column 74.
>
> ColdFusion was looking at the following text:
> }
>
> The CFML compiler was processing:
>
> An expression that began on line 16, column 67.
> The expression might be missing an ending #, for example, #expr
> instead
> of #expr#.
> The body of a cfmail tag beginning on line 1, column 2.
>
> The error occurred in /Users/johnbarrett/Sites/primitive/
> CSS_Email.cfm:
> line 16
> 14 : body{font-family:Arial, Helvetica, sans-serif;font-size:18px}
> 15 : logo{font-family:Arial, Helvetica, sans-serif;
> font-size:11px}
> 16 : john{font-family:"Lucida Grande"; font-size:9px;
> color:#FF0000}
> 17 : </style>
> 18 : </head>
>
> <!--- working code--->
> <cfmail from = "[EMAIL PROTECTED]" To = "[EMAIL PROTECTED]"
> Subject = "Which version do you see?">
> <cfmailpart
> type="text"
> wraptext="74">
> You are reading this message as plain text, because your mail
> reader
> does not handle HTML text.
> </cfmailpart>>
> <cfmailpart
> type="html">
> <html>
> <head>
> <style>
> body{font-family:Arial, Helvetica, sans-serif;font-size:18px}
> logo{font-family:Arial, Helvetica, sans-serif;
> font-size:11px}
> john{font-family:"Lucida Grande"; font-size:9px; red}
> </style>
> </head>
> <body>
>
>
> <div class="body">
>
> <h3>HTML Mail Message</h3>
> <p>You are reading this message as <strong>HTML</strong>.</p>
> <div class="john">
> <p>Your mail reader handles HTML text.</p>
> </div>
> </div>
> </body>
> </html>
> </cfmailpart>
> </cfmail>
>
>
> Thanks in advanced John
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3947
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15