473,461 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 5224
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
Hi Guys CDONTS works with all sites hosted on my test server bar one (which surely rules out a miscomputation of the Default SMTP server in IIS). I have tried uploading the file with make up...
29
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the...
8
by: Boris | last post by:
Could someone please tell me if I can use CDONTS in W 2003 Server environment to send emails the same way it is used in W2K Server. I have heard that CDONTS is no longer available in W 2003 Server...
4
by: F | last post by:
Hi Some one has posted this question on 10th August, as CDONTS is not working on windows 2003 serever. I have the same problem and I copied CDONTS.DLL from Windows 2000 Server and registered on...
16
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine....
9
by: scott | last post by:
I have my win 2003 server setup correct with SMTP. I know because I've tested it ok. However, when I issue CODE 1 below, I get ERROR 1 below. I thought having SMTP installed correctly allowed...
2
by: microsoft.public.dotnet.languages.csharp | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples...
4
by: Sin Precedente | last post by:
I have a win2k server with multiple domains on it many of which have a generic contact us page with a form that when submitted calls an .asp page that utilizes CDONTS. These pages have worked...
7
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.