I am attempting to add a BCC to an automated email.


The code works fine like this:
______________________________________
Imports System.Web.Mail
.
.
.

Dim newmsg As New MailMessage
SmtpMail.SmtpServer() = "mail.myserver.com"
newmsg.To = "[email protected]"
newmsg.From = "[email protected]"
newmsg.Body = "testing123"

SmtpMail.Send(newmsg.From, newmsg.To, "subject", newmsg.Body)
____________________________________




I am trying to add a BCC like this:
____________________________________
Imports System.Web.Mail
.
.
.

Dim newmsg As New MailMessage()
SmtpMail.SmtpServer() = "mail.myserver.com"
newmsg.To = "[email protected]"
newmsg.From = "[email protected]"
newmsg.Body = "my mail"
newmsg.Bcc = "[email protected]"
newmsg.Priority = MailPriority.Normal
newmsg.BodyFormat = MailFormat.Text
newmsg.Subject = "The Subject"


SmtpMail.Send(newmsg)

End Sub
____________________________________


I am getting a "An unhandled exception of type 'System.Web.HttpException' occurred in system.web.dll

Additional information: Could not access 'CDO.Message' object."

Error ..... Any ideas????


Thank you,
- Jim