VWD 2008 Express. Visual Basic.
I use the following routine (XXXXX have replaced sensitive data) to try to send an email message to mutiple email addresses. It only sends to the first email address in the comma-delimited list. How can I send the message to multiple email addresses? Thanks for the help.
Protected Sub SendButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SendButton.Click
'Send the message to all users who have emails.
Dim smtpClient As SmtpClient = New SmtpClient()
Dim message As MailMessage = New MailMessage()
Dim Success As Boolean, I As Integer, strTO As String = ""
Try
'Gather all user email addresses
Dim strSQL = "SELECT EMail from aspnet_membership where Email<>''"
Dim MyDataset As DataSet = GetDataSet(strSQL, Success)
...
Go to the complete details ...