Connecting Tech Pros Worldwide Forums | Help | Site Map

Dynamic html email to customer list - best approach

jason
Guest
 
Posts: n/a
#1: Jul 19 '05
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: john@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



Ray at
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Dynamic html email to customer list - best approach


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" <jason@catamaranco.com> wrote in message
news:OUjT3RojDHA.2444@TK2MSFTNGP09.phx.gbl...[color=blue]
> What is the best way to build a dynamic html body message if one is[/color]
looping[color=blue]
> 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: john@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
>
>[/color]


jason
Guest
 
Posts: n/a
#3: Jul 19 '05

re: Dynamic html email to customer list - best approach


Thanks......that confirms my POV...

Cheers
Jason

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:upLxqaojDHA.2200@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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[/color]
object.[color=blue]
>
> sBody = '''code to generate body here
>
> ''code to retreive e-mail addresses
> Do....
> ''create message
> .htmlbody = sBody
> Loop
>
> Ray at work
>
>
> "jason" <jason@catamaranco.com> wrote in message
> news:OUjT3RojDHA.2444@TK2MSFTNGP09.phx.gbl...[color=green]
> > What is the best way to build a dynamic html body message if one is[/color]
> looping[color=green]
> > 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: john@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[/color][/color]
has[color=blue][color=green]
> > completed a similiar mailing model?
> > Jason
> >
> >[/color]
>
>[/color]


Closed Thread