Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

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

  • 14-01-2013 03:36PM
    #1
    Registered Users, Registered Users 2 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,688 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, Registered Users 2 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, Registered Users 2 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