Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2004
    Posts
    96

    Unanswered: CDO error: The "SendUsing" configuration value is invalid

    Hi,
    I normally use the Jmail component in ASP to send emails server side.
    I am moving on a server which doesn't have the Jmail components so i am
    trying to use CDO but I am getting an error:

    Here is my script, this is coming from a sample script:

    Set objMessage = CreateObject("CDO.Message")
    objMessage.Subject = "Example CDO Message"
    objMessage.From = "info@xxxxx.com"
    objMessage.To = "info@yyy.com"
    objMessage.TextBody = "This is some sample message text."
    objMessage.Send


    And here is the error:

    CDO.Message.1 error '80040220'

    The "SendUsing" configuration value is invalid.

    /sendmail.asp, line 10

    I read on forums that the CDO needed to be enabled on the server but
    looking at the error message it seems more like a configuration
    problem, Can any one assist??

  2. #2
    Join Date
    Aug 2004
    Posts
    96
    Got it working, there is some configuration required on a remote server (this script in in JS):

    Code:
    var myMail=Server.CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="xxx"
    myMail.To="xxxxx"
    myMail.HTMLBody="<p>This is my HTML message.</p>"
    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")="xxxx"
    //Server port
    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 
    myMail.Configuration.Fields.Update();
    myMail.Send();

  3. #3
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    What was the missing configuration? Allow open relay from the ASP server?
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •