Question:
html form without mailto?
Corey Husic
2011-02-05 17:49:28 UTC
I am currently working on a simple form for a website and I want the results to be send to my email address. I am currently using an action="mailto:name@example.com" but it opens outlook, my external mail program. Is there a way to have the results of a form sent to an email without using the external program?
Six answers:
anonymous
2011-02-06 00:26:25 UTC
Recommend using a server-side script language if your web site allows it. Otherwise, you will have to use a client-side dependent "mailto:" action to get the form info sent to you.



Your current hosting package or service MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol ) to work. Otherwise, no email can be sent.



PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/send_email_text_html_attachment.php



Use any of the below sites to make the workable form you need:



These are really good online form makers. Just follow the instructions for making it and uploading file(s).



Contact Form Generator: http://www.tele-pro.co.uk/scripts/contact_form/

WYSIWYG Form Maker: http://www.jotform.com/?gclid=CNKhqei1wJ4CFRQhnAod6laUqA

http://www.thesitewizard.com/wizards/feedbackform.shtml

Ajax - Creating an HTML Form: http://www.tizag.com/ajaxTutorial/ajaxform.php

http://www.phpform.org/



http://www.thepcmanwebsite.com/form_mail.shtml

http://emailmeform.com/

http://www.freecontactform.com/
?
2016-11-18 12:18:01 UTC
Html Mailto Form
Dazed66
2011-02-05 18:00:58 UTC
It sounds like you need something other than a static HTML form with an SMTP component of some sort. You can use lots of different technogies to do this but you will need to make sure the server that hosting your site supports the technogy you want to use.



That really brings up something else - if you are going to take the time to add non-static pages then it may be better to just store the form data in a database.
Mark Skayff
2011-02-05 20:08:16 UTC
Hi Corey.

You canĀ“t just use HTML to send an e-mail from a Webpage.

You need a server-side technology like PHP, ASP.NET or JAVA EE.



Of course the form is still progrmamed in HTML.

It goes like this:



// Your form fields





So you still program the FORM in HTML but in the action attribute you must specify a dynamic SCRIPTing which will be in charge of processing your information and send it to you by mail.
BoogyMan Messiah
2011-02-05 18:02:08 UTC
The short answer to your question: No.

The long answer: There is, of course, a way to mail this without opening an external program. However, you can't do it with HTML.
rockwall68
2011-02-05 17:54:10 UTC
that means that the default email program for your computer is outlook.

you need to change the default setting or just delete outlook, then it will open in gmail etc


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