Smart Mailer ASP Support Product Page
This topic was archived
Dynamic templates
Asked 23 Sep 2003 21:09:01
1
has this question
23 Sep 2003 21:09:01 Tom Gibson posted:
Hi,I need to have the link to content (template link) be dynamic
For example, I need clients to select content to mail
market_news/template/plain_text.asp?id=35
market_news/template/plain_text.asp?id=40
market_news/template/plain_text.asp?id=45
market_news/template/plain_text.asp?id=50
or any other story/content
A customer would select a story, and I would pass this url to Smart mailer...
Tommy Gibson
Replies
Replied 23 Sep 2003 21:19:14
23 Sep 2003 21:19:14 Tom Gibson replied:
never mind - this is very easy
while not sm1.toRecord.EOF
sm1.setTo sm1.toRecord.Fields.Item(sm1.toRecordName).Value, sm1.toRecord.Fields.Item(sm1.toRecordEmail).Value
sm1.Subject = "" & (rsMailer.Fields.Item("email"
.Value) & ""
' using template for body
sm1.setBody_Template_html Session("template_link"
' MODIFIED LINE <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
' Attachments none
sm1.sendMail "multiple"
rsMailer.MoveNext()
Wend
sm1.done()
Tommy Gibson
while not sm1.toRecord.EOF
sm1.setTo sm1.toRecord.Fields.Item(sm1.toRecordName).Value, sm1.toRecord.Fields.Item(sm1.toRecordEmail).Value
sm1.Subject = "" & (rsMailer.Fields.Item("email"
' using template for body
sm1.setBody_Template_html Session("template_link"
' Attachments none
sm1.sendMail "multiple"
rsMailer.MoveNext()
Wend
sm1.done()
Tommy Gibson
Replied 24 Sep 2003 14:30:07
24 Sep 2003 14:30:07 George Petrov replied:
Yes thats it - I will make this editable via the UI later on as well
Greetings,
George
--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFreaks.nl
--------------------------------------------------
Greetings,
George
--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFreaks.nl
--------------------------------------------------
Replied 17 Jul 2007 08:57:08
17 Jul 2007 08:57:08 Justin Moss replied:
I've developed a solution and posted it here:
"Smart Mailer - how to merge fields into template" www.dmxzone.com/forum/topic.asp?topic_id=39080&NewsId=5578
Best Wishes,
Justin
"Smart Mailer - how to merge fields into template" www.dmxzone.com/forum/topic.asp?topic_id=39080&NewsId=5578
Best Wishes,
Justin

