Solved

CDOSYSMail Syntax

Posted on 2004-11-02
867 Views
Last Modified: 2008-01-09
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
Question by:arthursc
    5 Comments
     
    LVL 13

    Accepted Solution

    by:
    '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
     

    Author Comment

    by:arthursc
    objCDOSYSMail.From = "you@your.com"
    objCDOSYSMail.To = "you@your.com"
    objCDOSYSMail.BCC = "you@your.com"

    NO objCDOSYSMail.Cc=????
    0
     
    LVL 13

    Expert Comment

    by:nurbek
    add it :)

    objCDOSYSMail.To = "you@your.com"
    objCDOSYSMail.Cc = "you@your.com"
    objCDOSYSMail.BCC = "you@your.com"
    0
     

    Author Comment

    by:arthursc
    umm. thats exactly what I have.

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

    Expert Comment

    by:seloh
    0

    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