Best way to format HTML email?

I am implementing a comment control that allows a person to select comments and send them to specified departments. The letter should be formatted in a certain way, and I was wondering how best to do it.

Should I just hardcode all the style information into one massive method, or should I try to create a separate file and read it, and then replace certain tags with the relevant information?

+5
source share
6 answers

Find and use a template library if possible. This will make each email address a template that will be much easier to maintain than a hard-coded form.

+6
source

There are excellent, well-tested free templates in the campaign monitor:

http://www.campaignmonitor.com/templates/

Make sure that everything you use will display well in all clients.

Great guide:

http://www.campaignmonitor.com/blog/archives/2008/05/2008_email_design_guidelines.html

+5
source

- , , , - HTML-. , .

, , ​​ , , .

+3

. , - # somevar # 'somevar'. , ​​ Smarty PHP. , .

0

XLST . CSS. , Outlook 2007 : (

0

. , :

<p>Dear |FIRST_NAME|,

; . , ( html email log4net), xslt ( log4net) html- . .

, (, Lotus Notes) XHTML, HTML 1.0 css, .

0
source

All Articles