Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > CDO message with CC or BCC fails

Reply
Thread Tools

CDO message with CC or BCC fails

 
 
Debbie Davis
Guest
Posts: n/a
 
      08-19-2004
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=""
myMail.To=rsEmail("email")
myMail.BCC=""
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: email.message.Message - as_string fails Terry Reedy Python 0 12-29-2012 01:57 AM
Re: email.message.Message - as_string fails Chris Rebert Python 0 12-28-2012 05:25 PM
what is ("http://schemas.microsoft.com/cdo/configuration/sendusing") doing in CDO uofs76@yahoo.com ASP General 0 02-07-2007 01:09 PM
CDO problem with BCC and cdoSendUsingPickup Jorge Pagano ASP General 0 11-25-2003 10:11 PM
CDO for Windows 2000 vs CDO for Exchange 2000 ASP .Net 2 07-11-2003 12:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57