Question:
How to send some data directly from a form to an email address?
anonymous
2010-12-21 23:58:40 UTC
I want to make a popup on a site that asks for 2 lines of text and then send them over to my email address. How do I achieve that? I don't want a mailto: link, I want the data to be sent directly to my email address similar to a contact form. Do I need a script for this? What kind of script?

Thanks!
Four answers:
Kenneth
2010-12-22 00:01:46 UTC
You will need some type of server side script, such as PHP. Take a look at this link..

http://email.about.com/od/emailprogrammingtips/qt/How_to_Send_Email_from_a_PHP_Script.htm
?
2010-12-22 00:36:22 UTC
Assuming you have Php as server-side scripting, download the free script "form to email" from http://www.web2coders.com

It takes a few details on a form, sends the form to php, php formats the message, and send it to whatever email address you have decided.

The other script is "Newsletter": that one also sends email, but they are HTML formatted, and have images and link back (a bit more complex).
Alex Carpenter
2010-12-22 00:00:39 UTC
best thing id say if you don't know Javascript is to go to formspring.com create a free account there, and they will put together a form that you can customize and the info is sent to your email instantly, thats what i use.
vhinz
2010-12-22 00:02:35 UTC
You could try php. http://php.net/manual/en/function.mail.php



You'll be needing a html form for that and get those inputs using post and send them to your email.





Good luck :)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...