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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automated Emails

Status
Not open for further replies.

jma

Technical User
Apr 24, 2001
74
0
0
US
I am new at this kind of thing...obviously.... I want to set up a system to send an email to a group of people automatically twice a week...can someone point me in a direction? I have access, ultradev, etc...Thanks!
 
you can use CDONTS to do this.
below is a simple example of sending a single e-mail. however sending bulk e-mails works with the same principle.

you can obviously link this in with a form so your .subject and .body lines could be a variable (rather than hard coded string as below)

to send this to everyone in your database just stick a loop around it and substitute the .to line with a recordset holding e-mail addys

set newMailObj = createObject("cdonts.newMail")
newMailObj.from = "you@youraddress.com"
newMailObj.to = "your@reciever.com"
newMail.Obj.subject = "Your Subject"
newMail.Obj.body = "Your Body"
newMailObj.send
set newMailObj = nothing

hope this is of some help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top