CDO message with CC or BCC fails

D

Debbie Davis

Greetings, I'm using simple code to send customers an email after they
submit a helpdesk ticket. I wanted to copy myself on the emails, but
when I enter myMail.BCC or myMail.CC, it fails to send. If I comment
out these lines, the message sends successfully. I've made sure the
bcc or cc addresses are valid. I changed the names in my code to
protect the innocent.

Any thoughts? Thanks.

Code:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Helpdesk Ticket Resolution"
myMail.From="[email protected]"
myMail.To=rsEmail("email")
myMail.BCC="[email protected]"
myMail.HTMLBody=body
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="mail.server.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Update
myMail.Send
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top