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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Submitting a Form to email Address.

  • 19-05-2010 10: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,571 ✭✭✭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