Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About CDONTS
Message
From
15/06/2002 01:38:42
 
 
To
13/06/2002 06:26:26
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00667814
Message ID:
00668849
Views:
26
well i suppose u must be getting mail-id from your sql for 2 dates and have a recordset of that.
while not RS.eof 
 Set objNewMail = CreateObject("CDONTS.NewMail") 
  objNewMail.Send rs("mail-id"), "sender@company.com", "Hello", _ 
                  "sending this in 3 statements!", 0 ' low importance 
  Set objNewMail = Nothing 
  rs.movenext
loop
it is one of the various ways to use CDONTS. you can explore MSDN to learn more about different properties and methods of CDONTS.
above ex. shows sending mail in one single statement.
If contents of your mail will be same for all, you can make a comma separated string by navigating the recordset and then assign that string to CC property of CDONTS NEWMAIL object.
Best Luck..
Nilesh
Previous
Reply
Map
View

Click here to load this message in the networking platform