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

Submitting a Form to email Address.

Options
  • 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 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 Posts: 6,511 ✭✭✭daymobrew


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


  • Registered Users 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