Reply to Re: [PHP] specifying a font in PHP-generated email

Your name:

Reply:


Posted by Richard Davey on 09/21/05 00:57

Hello Kenn,

Tuesday, September 20, 2005, 9:32:47 PM, you wrote:

> I'm attempting to create an HTML email via PHP and cannot get the
> email to render in the correct font. I've made several stabs at it,
> the most recent one below. The same code that works just fine on a
> web page won't work for me here. What am I doing wrong?

Forget trying to include style elements in the header block for
emails, most mail clients strip them out totally. There is no
foolproof way to embedded CSS into an email and have all clients
handle it correctly (if at all). Lots of mail clients will attempt to
render the HTML themselves and don't support any form of CSS at all,
whereas others (like Outlook) use the IE rendering engine on Windows.

My suggestion? Embed the font styles into the email body and don't
even bother with a <head> section. I'd even go so far as to suggest
you use the HTML 4.x <font> tags instead of CSS.

But as with everything on the Internet, your mileage will always vary.

This article should also help: http://www.alistapart.com/articles/cssemail

--
Best regards,
Richard mailto:lists@corephp.co.uk

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация