Can CSS be enabled for emails? (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


Zoqaeski -> Can CSS be enabled for emails? (10/6/2004 20:10:46)

I got an email from one of my freinds who wanted to have emails styled like web pages. Can this be done using CSS, so it is compatible with Outlook, Hotmail, etc?




bobby -> RE: Can CSS be enabled for emails? (10/6/2004 22:28:44)

As long as the person receiving it accepts email in html format...

All you have to do is declare the stylesheet link by using the full URL

<link rel="stylesheet" type="text/css" href="ht tp://www. yoursite/yourcss.css" >




abbeyvet -> RE: Can CSS be enabled for emails? (10/7/2004 5:31:33)

If it is a newsletter style email going to loads of different people then best avoid css altogether and fall back to font styles in the HTML and all that stuff.

Lots of people pick up their mail in web-based mail systems and many of them will not support css in the mail at all. So I have read anyway, I cannot say with any authority which ones or anything, but have erred on the side of caution and send out newsletters whose code is almost embarrassing. [:o]

Another point when sending email that is HTML is that a text only version should be send also so that everyone is sure of getting the goods.




_gail -> RE: Can CSS be enabled for emails? (10/7/2004 9:02:57)

quote:

but have erred on the side of caution and send out newsletters whose code is almost embarrassing.


I ask this out of curiosity and respectfully.

What's embarassing? The fact that you're using HTML tables and not CSS? Or that the code is just kinda sloppy: that you use FrontPage without taking out all the border-collapses and that sort of stuff?

I guess what I'm trying to figure out is what kind of code can embarrass.

Oh, and I'm telling your subscribers to make sure to check your source code. [:D] [8D]

gail




Giomanach -> RE: Can CSS be enabled for emails? (10/7/2004 9:22:31)

Just FYI...

The majority of Web Based email accounts now will accept CSS, but only if it is embedded within the Email itself, rather than linked to and external source as the majority of them (Yahoo, Excite, Hotmail and the other big names) now utilize CSS for their pages.

Also, the majority of E-mail Clients (Outlook, Eudora, Thunderbird, Outlook Express) will accept emails in HTML format, CSS inlcusive, but again, better to have an embedded stylesheet rather than link to an external one.

For people like me, in their day job, they will use Outlook for email. Outlook here is connected to an exchange server, and denied all access to the internet, all email gets sent via the exchange server, and therefore, Images, external stylesheets are of no use in my emails.

At home.I have Outlook 2003...it works fine with external stylesheets etc, as I am indirectly connected (via a hardware FW) to the net.

Again, it's just FYI...




abbeyvet -> RE: Can CSS be enabled for emails? (10/7/2004 9:58:22)

quote:

but have erred on the side of caution and send out newsletters whose code is almost embarrassing.


quote:

I guess what I'm trying to figure out is what kind of code can embarrass


I am not really embarrased - it was just a throwaway comment. [:D]

I just meant that I used the kind of code I would never use on a site - full of font tags etc. That's all.




bobby -> RE: Can CSS be enabled for emails? (10/7/2004 10:56:33)

I've used the linked stylesheet method, and had no problems in hotmail, yahoo, aol, Outlook (and Express) and Mozilla Mail.

Never tried TBird or Eudora with it...

I think the first time we used it was about a year and a half ago, it's been working fine ever since. No complaints. :)

The really interesting part, was that when I reset my accounts to only accept text email I expected it to look like a mess... but surprisingly every client I checked it with succesfully stripped the html (and css link) and presented it quite well in standard text.

(This was using an automated mail list script written in ASP/CDONTS)




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0234375