Spedire email selezionando gli indirizzi da un database
'devo prima collegarmi al database ed impostare l'sql command
Dim aReader As SqlDataReader = cmd.ExecuteReader()
Dim myMail As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage()
myMail.From = "me@mydomain.com"
myMail.Body = "This is my e-mail message"
While aReader.Read()
myMail.To = aReader("Email")
System.Web.Mail.SmtpMail.Send(myMail)
Loop