I've just enabled mailing to multiple recipients using Ryan's suggestion of a param array. Here's how to quickly modify your code to make this work in VB.NET.
1. Modify the Code File - mailHelper.vb
Update the first few lines of the SendMailMessage subroutine as follows. Make the ParamArray the final parameter passed. Then loop through the ParamArray, adding each string (email address) as a recipient.
==================================
Public Shared Sub SendMailMessage(ByVal from As String, ByVal bcc As String, ByVal cc As String, _
ByVal subject As String, ByVal body As String, ByVal ParamArray strTo() As String)
' Instantiate a new instance of MailMessage
Dim mMailMessage As New MailMessage()
' Set the sender address of the mail message
mMailMessage.From = New MailAddress(from)
' Set the recepient addresses of the mail message
For Each s As String In strTo
mMailMessage.To.Add(New MailAddress(s))
Next==================================
2. Pass Multiple Addresses into the ParamArray
Anywhere you call the MailHelper, you can pass in multiple recipients as follows.
==================================
' Prepare the email
Dim strTo() As String = {"Recipient1@email.xyz", "Recipient2@email.xyz"}
Dim strFrom, strBcc, strCC, strSubject, strBody As String
strFrom = "me@email.xyz"
strBcc = "bccgal@email.xyz"
strCC = "ccguy@email.xyz"
strSubject = "This is the message subject."
strBody = "This ticket the message body."
' Send the email
MailHelper.SendMailMessage(strFrom, strBcc, strCC, strSubject, strBody, strTo)==================================
Ryan, your post was extremely helpful. Thanks a lot!