• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 892
  • Last Modified:

CDOSYSMail Syntax

Hi,

Does anyone out there know the full syntax and functions available when you use CDOSYSmail.

The reason i ask is that I want to be able to Cc and Bcc emails to people when I send a form.

Regards
Arthursc
0
arthursc
Asked:
arthursc
  • 2
  • 2
1 Solution
 
nurbekCommented:
'Create the e-mail server object
Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
'Out going SMTP server
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "your.home.org"
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update

'Update the CDOSYS Configuration
Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = "you@your.com"
objCDOSYSMail.To = "you@your.com"
objCDOSYSMail.BCC = "you@your.com"
objCDOSYSMail.Subject = "Subject goes here"
objCDOSYSMail.HTMLBody = " email message goes here"
objCDOSYSMail.Send
'Close the server mail object
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
0
 
arthurscAuthor Commented:
objCDOSYSMail.From = "you@your.com"
objCDOSYSMail.To = "you@your.com"
objCDOSYSMail.BCC = "you@your.com"

NO objCDOSYSMail.Cc=????
0
 
nurbekCommented:
add it :)

objCDOSYSMail.To = "you@your.com"
objCDOSYSMail.Cc = "you@your.com"
objCDOSYSMail.BCC = "you@your.com"
0
 
arthurscAuthor Commented:
umm. thats exactly what I have.

Yet the Mail.To works but the Mail.Cc doesn't receive the email.
0
 
selohCommented:
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now