survivorjoe
Technical User
Greetings,
I have 2 tables that I need to work on. From my Client table, I need to go through and look at the client email address for each client (unique email addresses stored in this table). For each client, I need to pull out their name, company name and phone number.
Next, I have to access the Subscriber table, where for each client email address, I access all the subscribers who they have added to their email list. In this table, I have the subscriber email address, plus their name.
For each subscriber email address, I need to send out an email message that contains their sponsor's info from the client table (client email address, name, company name & phone number). Plus, the email that goes out to the subscriber needs to have their name, which is stored in the Subscriber table.
Basically, it looks like this:
for each Client {
get Client email
get Client info
find all Client's Subscribers from Subscriber table
for each Subscriber {
get Subscriber email address
get Subscriber's name
do variable substitution in the email message
send out the personalized email to the Subscriber
}
}
What is the best way to structure all this?
I have 2 tables that I need to work on. From my Client table, I need to go through and look at the client email address for each client (unique email addresses stored in this table). For each client, I need to pull out their name, company name and phone number.
Next, I have to access the Subscriber table, where for each client email address, I access all the subscribers who they have added to their email list. In this table, I have the subscriber email address, plus their name.
For each subscriber email address, I need to send out an email message that contains their sponsor's info from the client table (client email address, name, company name & phone number). Plus, the email that goes out to the subscriber needs to have their name, which is stored in the Subscriber table.
Basically, it looks like this:
for each Client {
get Client email
get Client info
find all Client's Subscribers from Subscriber table
for each Subscriber {
get Subscriber email address
get Subscriber's name
do variable substitution in the email message
send out the personalized email to the Subscriber
}
}
What is the best way to structure all this?