my vb.net loop is acting up? - need help asap!!?

anonymous

New member
NOTE: my code sends out newsletters to people. It reads a list of emails from a file, and sends out the newsletter one email at a time... ONLY PROBLEM: It sends out multiple copies of the newsletter based on how many emails are in the list... I ONLY WANT 1 EMAIL to send out to the people in the list.

Code:


Do Until oRead.Peek = -1
LineIn = oRead.ReadLine()
myEMAIL.From = New MailAddress(Form1.txtfrom.Text)
myEMAIL.To.Add(LineIn)
myEMAIL.Body = Form1.txtmsg.Text

mySMTP.Credentials = New System.Net.NetworkCredential(mail_user, mail_pass)
MsgBox(LineIn)
mySMTP.Send(myEMAIL)
Loop

What should I do? Please help!!!
Rachetr:

Genius my friend. :) . Thank you very much for your help! 5 stars to you as soon as best answer comes available.
 
Back
Top