Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqlexpress database file auto-creation error, dbf2mysql parameter, WWWXXXAPC, wwwxxxAPC, How to unsubscrube from dategen spam, docmd.close 2585, WWWXXXDOCO, nu vot, dhcpd lease file "binding state", WWWXXXDOCO

Links

XODOX
Impressum

#1: Sending e-mail based on templates?

Posted on 2008-01-30 00:10:16 by Guy

I would like developing an application for sending e-mail based on a (html)
template. Scenario: user chooses distribution list and chooses a template
(fro ma list of available html-templates). These templates normally will have
tags that should be replaced with data (eg [FirstName]). This data is
provided by the distribution list. I know when the distribution lists and
templates are static (= the template will always use the same tags) you use
string.Replace and solved. But ...
what I want to achieve is that the user can creta his/her own templates with
fields from the db tables. this means the templates are not "static" nor are
the queries to create the distribution lists. My question now: what is the
best way to achieve this kind of "dynamic" templates. Should I put the used
tags in the template in a db table as well as the respective
database-table(s)-column(s) or in an xml file? Or what is the best way to
solve thi kind of problem?

Thanks.

Report this message