I'm having a huge problem with the following . I've written a package which people seem to like. I have had a couple of requests to ad a customers email mailshot. The problem is that every time I write the routine the Bcc only sends the 1st email address in the list and that is it. Here is my code in
VB 2005.
Imports System.Net.Mail
Dim SendFrom As MailAddress = New MailAddress(TxtFrom.Text)
Dim SendTo As MailAddress = New MailAddress(TxtTo.Text)
Dim SendBcc As MailAddress = New MailAddress(Emails)
Dim Message As MailMessage = New MailMessage(SendFrom)
Message.Bcc.Add(SendBcc)
Message.Subject = TxtSubject.Text
Message.Body = TxtBody.Text
Dim EmailClient As New SmtpClient("smtp.blueyonder.co.uk")
EmailClient.Send(Message)
Everything works great but the 'SendBcc' will only send to the 1st email in the list. For example if the following was my list "
[email protected],
[email protected],
[email protected]" it will only send to
[email protected].
Thanks
Pete*