CDOSYSMail Syntax

Posted on 2004-11-02
Last Modified: 2008-01-09

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.

Question by:arthursc
    LVL 13

    Accepted Solution

    'Create the e-mail server object
    Set objCDOSYSMail = Server.CreateObject("CDO.Message")
    Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
    'Out going SMTP server
    objCDOSYSCon.Fields("") = ""
    objCDOSYSCon.Fields("") = 25
    objCDOSYSCon.Fields("") = 2
    objCDOSYSCon.Fields("") = 60

    'Update the CDOSYS Configuration
    Set objCDOSYSMail.Configuration = objCDOSYSCon
    objCDOSYSMail.From = ""
    objCDOSYSMail.To = ""
    objCDOSYSMail.BCC = ""
    objCDOSYSMail.Subject = "Subject goes here"
    objCDOSYSMail.HTMLBody = " email message goes here"
    'Close the server mail object
    Set objCDOSYSMail = Nothing
    Set objCDOSYSCon = Nothing

    Author Comment

    objCDOSYSMail.From = ""
    objCDOSYSMail.To = ""
    objCDOSYSMail.BCC = ""

    NO objCDOSYSMail.Cc=????
    LVL 13

    Expert Comment

    add it :)

    objCDOSYSMail.To = ""
    objCDOSYSMail.Cc = ""
    objCDOSYSMail.BCC = ""

    Author Comment

    umm. thats exactly what I have.

    Yet the Mail.To works but the Mail.Cc doesn't receive the email.
    LVL 2

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
    Want to pick and choose which updates you receive? Feel free to check out this quick video on how to manage your email notifications.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    5 Experts available now in Live!

    Get 1:1 Help Now