Using CDONTS to send message to a group list

Results 1 to 2 of 2

Thread: Using CDONTS to send message to a group list

  1. #1
    Join Date
    Dec 1969
    Posts
    940

    Default Using CDONTS to send message to a group list

    Can anyone please send an example of using CDONTS to send messages to a group list? I want to send messages to multiple email messages stored in an Access table.<BR><BR>Thanks.<BR>

  2. #2
    ASP_DRUG_DEALER Guest

    Default RE: Using CDONTS to send message to a group list

    I have never tested this script, so performance and the usual guarantee to pick up women are not in effect. <BR><BR>&#060;%<BR>Dim strSQL, objRS, objConn, objMail, strTempMail<BR>Set objConn = Server.CreateObject("ADODB.Connection")<BR>objConn ="DSN=&#060;yourDSN&#062;;uid=&#060;yourUID&#062;; pwd=&#060;Yourpwd&#062;"<BR>strSQL = " Select * From Mail_List"<BR>Set objRS = Server.CreateObject("ADODB.Recordset")<BR>objRS.Op en strSQL, objConn<BR>strTempMail = objRS("email_address")<BR>objRS.Movenext<BR>Do Until objRS.EOF<BR>strTempMail = strTempMail & ";" & objRS("email_address")<BR>objRS.MoveNext<BR>Loop<B R> <BR>&#039The mail part...<BR>Set objMail = CreateObject("CDONTS.NewMail")<BR>objMail.From = "SpamMonster@Work.com"<BR>objMail.Bcc = strTempMail<BR>objMail.Subject = "More Spam For Free!"<BR>objMail.Body = "Your message here!"<BR>objMail.Send<BR>set objMail = nothing<BR>%&#062;<BR><BR>HTH<BR>DRUG_DEALER

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •