Print Page | Close Window

CDONTS and Databases

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=6690
Printed Date: 31 March 2026 at 4:18pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CDONTS and Databases
Posted By: kenn
Subject: CDONTS and Databases
Date Posted: 24 October 2003 at 1:38pm

Hi

Can anyone tell me if you can use an access DB with CDONTS?

I have a form which the use fills in and I then want to send it to several people who's email addresses are in a database.

If it is possible are there any examples anywhere?

Many thanks in advance for your help

Kenn



-------------
ken at newhall



Replies:
Posted By: KCWebMonkey
Date Posted: 24 October 2003 at 2:20pm

it would be just the same as how you pull any data from a database.

example:

' get the email address from the database
strMyEmail = RS("yourEmailField")

' then use the variable to send to the email from the database
objCDOMail.To = strMyEmail

look http://www.webwiz.net/asp/tutorials/email_using_cdonts_tutorial.asp - here for bruce's CDONTS tutorial for setting up CDONTS.



Posted By: kenn
Date Posted: 25 October 2003 at 2:42pm

Thanks

KCWebMonkey

Worked great

Kenn



Posted By: KCWebMonkey
Date Posted: 25 October 2003 at 2:49pm
no problem.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net