« Previous Next »

Answered Thread: The "SendUsing" configuration value is invalid.

Last post 02-06-2009 12:30 PM by dmelgarejo. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-04-2007, 9:48 AM

    • lipos
    • Not Ranked
    • Joined on 10-03-2007, 5:02 PM
    • Posts 2

    The "SendUsing" configuration value is invalid.

    I'm working on a form html form that uses asp. After submitting the content on html webpage i see something like this:

     

    CDO.Message.1 error '80040220'

    The "SendUsing" configuration value is invalid.

     

     This is a code for this website:

     

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <%
    Dim objCDOMail    'Hold the CDONTS NewMail Object
    Dim EmailBody, txtEmailFrom, txtEmailTo, txtEmailSubject
    Set objCDOMail = Server.CreateObject("CDO.Message")



    If Request.Form("txtEmail") = "" then
        txtEmailFrom = "server"
    Else
        txtEmailFrom = Request.Form("txtEmail")
    End If

        txtEmailTo = "some email address"

        txtEmailSubject = "Website Inquiry"

        EmailBody = "You have received a website inquiry." & vbCrLf & vbCrLf
        EmailBody = EmailBody & "Name: " & Request.Form("txtName") & vbCrLf
        EmailBody = EmailBody & "Company: " & Request.Form("txtCompany") & vbCrLf & vbCrLf
        EmailBody = EmailBody & "Address: " & Request.Form("txtAddress1") &  vbCrLf
        If Request.Form("txtAddress2") <> "" then
        EmailBody = EmailBody & Request.Form("txtAddress2") & vbCrLf
        End IF
        EmailBody = EmailBody & Request.Form("txtCity") & ", " & Request.Form("txtTheState") & ", " & Request.Form("txtZip") & vbCrLf & vbCrLf
        If Request.Form("txtTelephone") <> "" then
        EmailBody = EmailBody & "Telephone: " & Request.Form("txtTelephone")& vbCrLf
        End If
        EmailBody = EmailBody & "Email: " & Request.Form("txtEmail")& vbCrLf & vbCrLf
        EmailBody = EmailBody & "Financing Need: "  & Request.Form("txtFINANCING_NEED")& vbCrLf


    objCDOMail.From = txtEmailFrom
    objCDOMail.To = txtEmailTo
    objCDOMail.Subject = txtEmailSubject
    objCDOMail.TextBody = EmailBody
    objCDOMail.Send

    Set objCDOMail = Nothing
    %>


    Website was moved form one server to another. I assume that this has something to do with SMTP, but I'm not able to figure out how to add the IP address for the server in mu network.

    Any ideas? 

  • 10-04-2007, 10:00 AM In reply to

    Answered Re: The "SendUsing" configuration value is invalid.

    Try this format:

    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="mymail@mydomain.com"
    myMail.To="someone@somedomain.com"
    myMail.TextBody="This is a message."
    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") _
    ="smtp.server.com"
    'Server port
    myMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
    =25 
    myMail.Configuration.Fields.Update
    myMail.Send
    set myMail=nothing
    %>
    It's from:  http://www.w3schools.com/asp/asp_send_email.asp
    Send using is either port or pickup, but if there's no local SMTP service then neither works.  In this code, smtp.server.com is the FQDN of your mail server, or it can be the IP address.  That you can get from your administrator.
    Jeff
    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-05-2007, 2:11 PM In reply to

    • lipos
    • Not Ranked
    • Joined on 10-03-2007, 5:02 PM
    • Posts 2

    Re: The "SendUsing" configuration value is invalid.

    You will go to heaven some day :)

    It's working great.

    Thx! 

  • 02-06-2009, 12:30 PM In reply to

    Re: The "SendUsing" configuration value is invalid.

    worked great!!! thanks a lot

Page 1 of 1 (4 items)
Microsoft Communities