Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BCC not being recognised with CDONTS

Status
Not open for further replies.

abienz

Programmer
Aug 13, 2001
53
GB
Hi there,

I'm trying to send an email generated in ASP using CDONTS,
I've tested the mail and it all works fine, except address put into the
BCC object don't get the mail! Here's my code.

Dim Mail
Dim strFrom
Dim strTo
Dim strSubject
Dim strBody

strFrom=company_email
strTo=target_email_address
strSubject = subjectStr
strBody=bodyStr

Set Mail = CreateObject("CDONTS.NewMail")

Mail.From = strFrom
Mail.To = StrFrom
Mail.BCC = strTo
Mail.Subject = strSubject
Mail.Body = strBody
Mail.Send

set Mail = nothing

However this mail only gets sent to the 'To' recipient and not to the BCC
recipients. I got this code form Microsofts site, so I'm a tres confused :
(

TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top