Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default CDO mail error

    I've used this code on other sites/servers, but i'm getting this error on
    another server i have no control of.
    Any Ideas guys/gals ???

    This is the error!


    CDO.Message.1 error '80040220'

    The "SendUsing" configuration value is invalid.

    /contact_us.asp, line 28



    This is the code!



    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <%
    if Request.Form("FFSubmitted") = "yes" then
    Dim BodyString
    Dim objCDO
    Dim RedirectURL
    Dim FormFields
    Dim arrFormFields
    FormFields = "name~email~message~whereFrom"
    If FormFields <> "" Then
    arrFormFields = split(FormFields,"~")
    End If
    Set objCDO = Server.CreateObject("CDO.Message")
    objCDO.From = "Online_Enquiry"
    objCDO.To = "whatever@whatever.com"
    objCDO.Cc = ""
    objCDO.Bcc = ""
    objCDO.Subject = "Online application form"
    BodyString = Replace("","~",chr(13) & chr(10) )& chr(13)
    If FormFields <> "" Then
    For Each item In arrFormFields
    BodyString = BodyString & item & ": " & Request.Form(item) & chr(13)
    Next
    End If
    objCDO.TextBody = BodyString
    'objCDO.BodyFormat = 1
    'objCDO.MailFormat = 1
    objCDO.Send
    Set objCDO = Nothing
    RedirectURL = "testmail.asp"
    If RedirectURL <> "" then
    If Request.QueryString <> "" Then
    response.redirect(RedirectURL & "?" & Request.QueryString)
    else
    response.redirect(RedirectURL)
    end If
    end if
    end if
    %>
    <% MM_EditAction = CStr(Request("URL"))
    If (Request.QueryString <> "") Then
    MM_EditAction = MM_EditAction & "?" & Request.QueryString
    End If
    %>



    Andy Guest

  2. Similar Questions and Discussions

    1. mail.log error
      I get the following error when I try to view the mail.log. I'm running MX6.1. "Date" is an invalid date format. The error occurred in...
    2. mail error
      I am using php 4 with apache in windows. I created a form in html with this code: <FORM method="POST" action="do_feedback.php"> <p>your name:...
    3. mail() error handling
      I use mail() for a musician's mailing list script that suddenly started having problems after many months of working flawlessly. The code fragment...
    4. e-mail error
      pat jackson wrote: Contact the folks who run your mail server.
    5. error on e-mail
      0x800ccc6e I got the above error code/message from my computer when I tried to send e-mail after installing a router. I have the right...
  3. #2

    Default Re: CDO mail error

    I've some code here for CDOSYS

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

  4. #3

    Default Re: CDO mail error

    Hi Jules
    I've looked at your code, how would this look using the form fields for the
    body of the email?

    Thanks
    Andy


    "Julian Roberts" <newsg@charon.co.uk> wrote in message
    news:d5r2ur$mlo$1@forums.macromedia.com...
    > I've some code here for CDOSYS
    >
    > --
    > Jules
    > [url]http://www.charon.co.uk/charoncart[/url]
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >


    Andy Guest

  5. #4

    Default Re: CDO mail error

    What i meant was, how do i get all of the form fileds into the body?

    Andy


    "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
    news:d5src6$ait$1@forums.macromedia.com...
    > Hi Jules
    > I've looked at your code, how would this look using the form fields for
    > the body of the email?
    >
    > Thanks
    > Andy
    >
    >
    > "Julian Roberts" <newsg@charon.co.uk> wrote in message
    > news:d5r2ur$mlo$1@forums.macromedia.com...
    >> I've some code here for CDOSYS
    >>
    >> --
    >> Jules
    >> [url]http://www.charon.co.uk/charoncart[/url]
    >> Charon Cart 3
    >> Shopping Cart Extension for Dreamweaver MX/MX 2004
    >>
    >>
    >>
    >
    >
    >
    >


    Andy Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139