|
-
Mar 6th, 2003, 03:36 PM
#1
Thread Starter
New Member
Email BCC issue
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|