VB.net中的SMTP BCC功能

时间:2013-03-07 18:42:50

标签: vb.net email smtp bcc

我希望在以下代码中添加BCC邮件功能。如何在以下代码中进行更改以向多个电子邮件发送自动电子邮件

    Dim SMTPServer As New SmtpClient()
    Dim Mail As New MailMessage()
    SMTPServer.Credentials = New Net.NetworkCredential(" ")
    SMTPServer.Port = 587
    SMTPServer.Host = " "

    Mail = New MailMessage
    Mail.From = New MailAddress(" ")


    Mail.To.Add(dr("").ToString)

    Mail.Subject = "Patient Assignment"
    Mail.Body = "   "



    SMTPServer.Send(Mail)

0 个答案:

没有答案