Emailing to a mailing list

Results 1 to 2 of 2

Thread: Emailing to a mailing list

  1. #1
    Join Date
    Dec 1969

    Default Emailing to a mailing list

    Hi <BR>I am storing email addresses to which i want to mail a newsletter in a database table. I have no problem viewing and editing this list, my problem is sending the mail to every record in my mailing list table<BR><BR>How do i put all of the addresses stored in my table into the .To command in my code<BR><BR>Set objmail = Server.CreateObject("CDONTS.NewMail") with objmail<BR> .From = ""<BR> .To = "All entries in the mailing list"<BR>......................<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Emailing to a mailing list

    Check out the ADODB.RecordSet.GetString method to recieve all email adresses from your db in the following format:<BR><BR>";otheremail@whatev;"<BR><BR>then enter YOUR adress in the .TO field and add the string with the email adresses in the mail.BCC field.

Posting Permissions

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