If you've got a full URL in the LINK tag it should work.  I usually
add a BASE tag, and then use relative URLs throughout (including the
LINK) tag.

cheers,
barneyb

On Fri, 18 Mar 2005 22:18:14 -0800, Stan Winchester
<[EMAIL PROTECTED]> wrote:
> How do you embed a style sheet in CFMAIL?
> 
> I've tried the following:
> 
> <cfmail to="#GetUserEmailInfo.Email#"
> 
>       from="#request.email#"
> 
>       subject="#emailSubject#"
> 
>       server="#request.mailServer#"
> 
>       type="HTML">
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> 
> <html>
> 
> <head>
> 
>           <link rel="STYLESHEET" type="text/css"
> href="#request.rootURL#assets/styles.css">
> 
> </head>
> 
> <body>
> 
> #theMessage#
> 
> </body>
> 
> </html>
> 
> </cfmail>
> 
> When I view the source code of an email, it looks okay, but the styles do
> not render properly.
> 
> Thanks, Stan


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199451
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to