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.

Submitting a Form to email Address.

  • 19-05-2010 11:01PM
    #1
    Closed Accounts Posts: 314 ✭✭


    Is it possible to Have a Form with action mailto NOT open a default email program like outlook?

    I want someone to Fill a Form, e.g.

    Name:
    [ Joe ]
    Enquiry: [ Hey I would like to buy your product ]

    then this get emailed to me [user@hotmail.com] straight away after user clicking submit. How do you do this? Please Help..


Comments

  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭Pixelcraft


    you need a server side script to achieve this. A common one would be 'formMail' if you do a search you should find plenty of options


  • Registered Users, Registered Users 2 Posts: 6,651 ✭✭✭daymobrew


    I use TecTite FormMail. It is powerful and consequently can be tough to set up.


  • Registered Users, Registered Users 2 Posts: 1,771 ✭✭✭jebuz


    It's actually quite simple to do using PHP if your host supports it.

    On my website I made a call to the PHP mail() function using Ajax from my browser which is probably safer than passing the parameters through a URL to send the email.

    Here is some sample code, mess around with it and see what you can do.

    [PHP]$success = mail ("sendaddress@email.com" , "Subject Text", "Message Body", "fromaddress@email.com");[/PHP]


Advertisement