 |
 |
PHP + HTML E-mail : Using CSS
|
 |
|
 |
|
Junior Member
Join Date: May 2003
Status:
Offline
|
|
Hello all,
I have written a small PHP script that will send an html e-mail to everyone in a MySQL database. The problem I have is that the CSS is not recognized in the e-mail client. Is this something that is not supported, or am I missing a certain step?
Please advise.
Jon31
|
|
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
|
|
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: May 2003
Status:
Offline
|
|
Umm.. I'm sending HTML e-mails, but when viewing the e-mail, the CSS formatting of the HTML does not show up in the e-mail. I had a direct link to the css style sheet. I want to use line-height and font-weight, etc.
Ideas?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Apr 2003
Status:
Offline
|
|
why don't you have the css in the actual page instead of linking to it externally?
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: May 2003
Status:
Offline
|
|
I've tried both ways, neither seem to work for me.
Could you post an example of an inline CSS? Say for added a border to a table.
thanks!
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Feb 2001
Location: Manhattan
Status:
Offline
|
|
dude, css won't work inline in most email apps...i believe it works in outlook, outlook express, most web based mailers, apple mail and probably some others (entourage,eudora?) but not aol and some older apps.
you're better off just using good old fashioned font tags and table layouts...
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Nov 2001
Location: Toronto Canada
Status:
Offline
|
|
as ameat says, outlook and outlook express in Windows embed internet explorer, and should do css exactly as expected.
Other email clients will behave unexpectedly, some won't accept css at all. That's the way it goes.
Also some web-based mail systems, yahoo for example, will parse html emails and remove things they find suspicious especially javascript. I can't remember how they treat css but I don't imagine it's pretty.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|