SharkBait
08-15-2007, 11:32 AM
Hi,
I've been using MailMessage() to send some basic emails to customers and I was curious if anyone knows how I can either a) send to multiple recipients or b) Cc people in on the email that I send out.
Dim MailMSG as New MailMessage(sFROM, sTO, sSubject, sBody)
SMTPClient.Host = "127.0.0.1"
SMTClient.UseDefaultCredentials = True
Try
SMTPClient.Send(MailMSG)
Catch ex as Exception
End Try
SMTPClient = Nothing
Now looking over the help file for MailMessage there is a Cc property as well as a Bcc property though I am unsure how they work.
If I was to use the sTo variable, could I comma or semi-colon delimit the email addresses to have it sent to multiple people?
I've been using MailMessage() to send some basic emails to customers and I was curious if anyone knows how I can either a) send to multiple recipients or b) Cc people in on the email that I send out.
Dim MailMSG as New MailMessage(sFROM, sTO, sSubject, sBody)
SMTPClient.Host = "127.0.0.1"
SMTClient.UseDefaultCredentials = True
Try
SMTPClient.Send(MailMSG)
Catch ex as Exception
End Try
SMTPClient = Nothing
Now looking over the help file for MailMessage there is a Cc property as well as a Bcc property though I am unsure how they work.
If I was to use the sTo variable, could I comma or semi-colon delimit the email addresses to have it sent to multiple people?