Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bulk email and CDONTS

Status
Not open for further replies.

Javamahn

Technical User
Mar 14, 2001
143
US
I am selecting a recordset based on a field("emailed") = False. The Multiple records are then displayed,in a form with the addition of a "Send email" checkbox. the checkbox has a value equal to the ID# (autonumbering Primary key) of the record. I want to allow the user to select which records in the recordset to send an email to using cdonts. I believe subset is the proper term and then update the database changing the field emailed to true when the form is submitted. Recordset selection is easy. After that I am lost. Any help is greatly appreciated.
 
C'mon snowboardr you answered this before.

Request the checkbox values that has the ID#s. (When you use one name for all checkboxex you'll receive the data comma delimited.) Example:

userIDs = request.form("checkbox_name")
set rs = conn.execute("select * from users where ID in " & userIDS)
userInfo=rs.getrows
rs.close : set rs = nothing
for i = 0 to ubound(userInfo,2)
set cdonts ' pseudo code
cdonts.to = userInfo(2) '
send email '
set sdonts = nothing '
next
 
Thank you denoxis. I did not know the data was passed comma delimited. That makes it much easier.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top