VB and Send Multiple Emails

Results 1 to 2 of 2

Thread: VB and Send Multiple Emails

  1. #1
    Dano Guest

    Default VB and Send Multiple Emails

    I am trying to send to email to multiple recipients at once using vb, but this code will only send to the last email in the database, can some please fix?<BR><BR>Do Until MailList.EOF<BR> ToList = MailList("email") & ";"<BR> Temp = ToList<BR> MailList.MoveNext <BR>Loop<BR>MyMail.To = Temp<BR>MyMail.Send

  2. #2
    Join Date
    Dec 1969

    Default RE: VB and Send Multiple Emails

    This is a common error when building a string in a loop.<BR><BR>Change: Temp = ToList<BR>To: Temp = Temp & ToList<BR><BR>That&#039;ll fix it

Posting Permissions

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