469,280 Members | 1,810 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,280 developers. It's quick & easy.

CDONTS & BCC

Hi

I have a website hosted on a virtual server, and am trying to run a script
that sends an email with a BCC address.

The email gets sent just fine, except for the BCC recipient, who doesnt
receive anything. Any ideas why?

Thanks

The code is effectively:

' --- setup and send a cdo message
Dim MailObject
Set MailObject = Server.CreateObject("CDONTS.NewMail")
With MailObject
.From = strEmailFrom
.To = strTo
.Subject = strSubject
' --- use the HTML format
If boolUseHTML = True Then
.BodyFormat = 0
.MailFormat = 0
.Body = strBodyHTML
' --- use the plain text format
Else
.BodyFormat = 1
.MailFormat = 1
.Body = strBodyText
End If
.BCC = strEmailBCC
.Send
End With
Set MailObject = Nothing
Jul 19 '05 #1
3 5087
Are you sure the e-mail address is right? Try putting your strEmailBCC in
the To line with the other person so you can see what's going on.

Also check the event logs on the server to see if the SMTP service was
unable to resolve that recipient's domain.

Ray at home

"Sean" <ve***********@softhome.net> wrote in message
news:10***************@ananke.eclipse.net.uk...
Hi

I have a website hosted on a virtual server, and am trying to run a script
that sends an email with a BCC address.

The email gets sent just fine, except for the BCC recipient, who doesnt
receive anything. Any ideas why?

Thanks

The code is effectively:

' --- setup and send a cdo message
Dim MailObject
Set MailObject = Server.CreateObject("CDONTS.NewMail")
With MailObject
.From = strEmailFrom
.To = strTo
.Subject = strSubject
' --- use the HTML format
If boolUseHTML = True Then
.BodyFormat = 0
.MailFormat = 0
.Body = strBodyHTML
' --- use the plain text format
Else
.BodyFormat = 1
.MailFormat = 1
.Body = strBodyText
End If
.BCC = strEmailBCC
.Send
End With
Set MailObject = Nothing

Jul 19 '05 #2
just checked into the NG for a solution to this !

My script will send to the To and CC recipient fine but not the BCC (they
are all the same email address so I should have three copies of the email)
but I only get the To and CC messages.


"Ray at <%=sLocation%>" <ra*@ajf8jalskdfna.sefrhja7yasdf.com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
Are you sure the e-mail address is right? Try putting your strEmailBCC in
the To line with the other person so you can see what's going on.

Also check the event logs on the server to see if the SMTP service was
unable to resolve that recipient's domain.

Ray at home

"Sean" <ve***********@softhome.net> wrote in message
news:10***************@ananke.eclipse.net.uk...
Hi

I have a website hosted on a virtual server, and am trying to run a script that sends an email with a BCC address.

The email gets sent just fine, except for the BCC recipient, who doesnt
receive anything. Any ideas why?

Thanks

The code is effectively:

' --- setup and send a cdo message
Dim MailObject
Set MailObject = Server.CreateObject("CDONTS.NewMail")
With MailObject
.From = strEmailFrom
.To = strTo
.Subject = strSubject
' --- use the HTML format
If boolUseHTML = True Then
.BodyFormat = 0
.MailFormat = 0
.Body = strBodyHTML
' --- use the plain text format
Else
.BodyFormat = 1
.MailFormat = 1
.Body = strBodyText
End If
.BCC = strEmailBCC
.Send
End With
Set MailObject = Nothing


Jul 19 '05 #3
Try testing with different addresses then. I don't know about you, but if I
e-mail myself an e-mail with my e-mail address in the To, CC, and BCC, I
only receive one copy of it.

Ray at home

"John Smith" <jo**@nospam.spam> wrote in message
news:be**********@sparta.btinternet.com...
just checked into the NG for a solution to this !

My script will send to the To and CC recipient fine but not the BCC (they
are all the same email address so I should have three copies of the email)
but I only get the To and CC messages.


"Ray at <%=sLocation%>" <ra*@ajf8jalskdfna.sefrhja7yasdf.com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
Are you sure the e-mail address is right? Try putting your strEmailBCC in
the To line with the other person so you can see what's going on.

Also check the event logs on the server to see if the SMTP service was
unable to resolve that recipient's domain.

Ray at home

"Sean" <ve***********@softhome.net> wrote in message
news:10***************@ananke.eclipse.net.uk...
Hi

I have a website hosted on a virtual server, and am trying to run a

script that sends an email with a BCC address.

The email gets sent just fine, except for the BCC recipient, who doesnt receive anything. Any ideas why?

Thanks

The code is effectively:

' --- setup and send a cdo message
Dim MailObject
Set MailObject = Server.CreateObject("CDONTS.NewMail")
With MailObject
.From = strEmailFrom
.To = strTo
.Subject = strSubject
' --- use the HTML format
If boolUseHTML = True Then
.BodyFormat = 0
.MailFormat = 0
.Body = strBodyHTML
' --- use the plain text format
Else
.BodyFormat = 1
.MailFormat = 1
.Body = strBodyText
End If
.BCC = strEmailBCC
.Send
End With
Set MailObject = Nothing



Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by scott | last post: by
2 posts views Thread by microsoft.public.dotnet.languages.csharp | last post: by
7 posts views Thread by Paul | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.