473,320 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Dynamic html email to customer list - best approach

What is the best way to build a dynamic html body message if one is looping
through a customer table (=/=500 customers) and corresponding inventory
table:

1. FSO html template with paramters
2. Build the thing in the .HTMLbody of CDO while looping
3. Another elegant method....

The customer email (TO: jo**@catco.com) would look something like this:

Yacht: Amazing Grace
-----------------------

Original Price: 100,000
Reduced Price: 80,000
Date of Change: 12/12/2003

Yacht: Ocean Speed
-----------------------
Original Price: 80,000
Reduced Price: 70,000
Date of Change: 12/12/2003

rs.movenext
Thanks in advance for any advice you can give me...is there anyone who has
completed a similiar mailing model?
Jason
Jul 19 '05 #1
2 2152
If I understand you right, build the body in a variable and then loop
through and use that variable as the .htmlbody for each cdo.message object.

sBody = '''code to generate body here

''code to retreive e-mail addresses
Do....
''create message
..htmlbody = sBody
Loop

Ray at work
"jason" <ja***@catamaranco.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
What is the best way to build a dynamic html body message if one is looping through a customer table (=/=500 customers) and corresponding inventory
table:

1. FSO html template with paramters
2. Build the thing in the .HTMLbody of CDO while looping
3. Another elegant method....

The customer email (TO: jo**@catco.com) would look something like this:

Yacht: Amazing Grace
-----------------------

Original Price: 100,000
Reduced Price: 80,000
Date of Change: 12/12/2003

Yacht: Ocean Speed
-----------------------
Original Price: 80,000
Reduced Price: 70,000
Date of Change: 12/12/2003

rs.movenext
Thanks in advance for any advice you can give me...is there anyone who has
completed a similiar mailing model?
Jason

Jul 19 '05 #2
Thanks......that confirms my POV...

Cheers
Jason

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:up**************@TK2MSFTNGP12.phx.gbl...
If I understand you right, build the body in a variable and then loop
through and use that variable as the .htmlbody for each cdo.message object.
sBody = '''code to generate body here

''code to retreive e-mail addresses
Do....
''create message
.htmlbody = sBody
Loop

Ray at work
"jason" <ja***@catamaranco.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
What is the best way to build a dynamic html body message if one is

looping
through a customer table (=/=500 customers) and corresponding inventory
table:

1. FSO html template with paramters
2. Build the thing in the .HTMLbody of CDO while looping
3. Another elegant method....

The customer email (TO: jo**@catco.com) would look something like this:

Yacht: Amazing Grace
-----------------------

Original Price: 100,000
Reduced Price: 80,000
Date of Change: 12/12/2003

Yacht: Ocean Speed
-----------------------
Original Price: 80,000
Reduced Price: 70,000
Date of Change: 12/12/2003

rs.movenext
Thanks in advance for any advice you can give me...is there anyone who has completed a similiar mailing model?
Jason


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: mr_burns | last post by:
hi, is it possible to change the contents of a combo box when the contents of another are changed. for example, if i had a combo box called garments containing shirts, trousers and hats, when...
0
by: Matt Silberstein | last post by:
This is not a Perl question per se. That is, I am not asking a language question, but a design question. But I will be writing the code in Perl and it is likely a common issue. Here is the...
3
by: Matt Silberstein | last post by:
This is not a MySQL question per se. That is, I am not asking a language question, but a design question. But I will be writing the code in Perl/MySQL and it is likely a common issue. Here is...
19
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
26
by: Jerim79 | last post by:
I need to create a form that takes a number that the user enters, and duplicates a question the number of times the user entered. For instance, if the customer enters 5 on the first page, when...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
2
by: Peted | last post by:
Can anyone suggest a best practice approach to building a dynamic winforms UI. Just as an example somehting like a billing application where you enter a customer billing data and the billing...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.