Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid.

Options
  • 14-01-2013 3:36pm
    #1
    Registered Users Posts: 44


    Hi,

    Im having an issue trying to get an asp email form working. When I hit submit, I am receiving the following error message.

    CDO.Message.1 error '80040220'

    The "SendUsing" configuration value is invalid.

    /formtomail.asp, line 8

    my code is this
    
     <form id="contact-form" action="formtomail.asp" method="post">
    								<fieldset>
    									<label>
    										<input type="text" value="Name" onBlur="if(this.value=='') this.value='Name'" onFocus="if(this.value =='Name' ) this.value=''" />
    									</label>
    									<label>
    									  <input type="text" value="Email" onBlur="if(this.value=='') this.value='Email'" onFocus="if(this.value =='Email' ) this.value=''" />
    									</label>
    									<label>
    									  <input type="text" value="Phone" onBlur="if(this.value=='') this.value='Phone'" onFocus="if(this.value =='Phone' ) this.value=''" />
    									</label>
                                        <label>
    									  <input type="text" value="Company" onBlur="if(this.value=='') this.value='Company'" onFocus="if(this.value =='Company' ) this.value=''" />
    									</label>
    									<textarea onBlur="if(this.value=='') this.value='Message'" onFocus="if(this.value =='Message' ) this.value=''">Message</textarea>
    									<div class="buttons-wrapper">
    										<a class="SubmitBtn" onClick="document.getElementById('contact-form').reset()">Clear</a>
    										<a class="button" onClick="document.getElementById('contact-form').submit()">Send</a>
    									</div>
    								</fieldset>
    				</form>
    
    
    <%
    'Sends an email
    Dim mail
    Set mail = Server.CreateObject("CDO.Message")
    mail.To = "me@me.ie"
    mail.From = Request.Form("Email")
    mail.TextBody = Request.Form("Message")
    mail.Send()
    Response.Write("Mail Sent!")
    'Destroy the mail object!
    Set mail = nothing
    %>
    

    Any help is appreciated.


Comments

  • Moderators, Society & Culture Moderators Posts: 9,689 Mod ✭✭✭✭stevenmu


    I don't remember a lot about this, but IIRC for some versions of Windows/IIS you need to use CDONTS

    http://support.microsoft.com/kb/186204


  • Registered Users Posts: 44 MikeFantana


    I'm don't mind what version I use once i get the form working :) whether its cdonts or cdosys or whatever...


  • Registered Users Posts: 3 ABug


    Her


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    stevenmu wrote: »
    I don't remember a lot about this, but IIRC for some versions of Windows/IIS you need to use CDONTS

    http://support.microsoft.com/kb/186204

    +1, came across the problem several times on a customer site when the sys admins kept moving a site between machines with different versions of windows.


Advertisement