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.

ASP script to Email from contact us form

  • 05-05-2008 02:38PM
    #1
    Registered Users, Registered Users 2 Posts: 1,059 ✭✭✭


    Anyone know where I can find a good reliable script that will grap information from any type of form, including a contact us form, and throw it back to me in an email?
    A huge bonus would be if it had a spam verification image system also

    It needs to be using CDOSYS as my server wont support CDONTS.


Comments

  • Registered Users, Registered Users 2 Posts: 21,278 ✭✭✭✭Eoin


    Here's the code - wouldn't take much to take in the details of a form. Here's an ASP captcha solution (no components required).
    <%
    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.Send
    set myMail=nothing
    %>
    

    If you want to make the mailer code generic, you could just loop through the Request.Form collection and print out the field name and value. If you give your form fields meaningful names, it would be quite presentable.


  • Registered Users, Registered Users 2 Posts: 706 ✭✭✭DJB


    Drop me a pm with your email and I'll forward on a couple of files. I don't have a capchta but you can post any form to this script and it will convert all form elements into an email and send it to whatever address. I've got code set up for cdonts, cdosys, jmail, aspemail, etc. cause I never know what will be supported on the server.


Advertisement