Outlook issue with HTML form

February 2017




Issue



I have a small website with a very simple HTML form that allows user to send his data; then the webmaster receives an email with the data included in the form.

My problem is that, when ever Outlook is set up on a machine, the email button open Outlook automatically.

Is there a way to just have the form send without opening Outlook ?

Solution


It opens outlook for me. I would like to send the email without disturbing the outlook as u said may be PHP script or ASP script... am not sure how it works in HTML can you please help me with that.


<html> 
<body> 
<form action="MAILTO:ameen544@gmail.com" method="post" ectype="text/plain"> 

<h3>This form sends an e-mail to W3Schools.</h3> 
Name:<br> 
<input type="text" name="name" 
value="yourname" size="20"> 
<br> 
Mail:<br> 
<input type="text" name="mail" 
value="yourmail" size="20"> 
<br> 
Comment:<br> 
<input type="text" name="comment" 
value="yourcomment" size="40"> 
<br><br> 
<input type="submit" value="Send"> 
<input type="reset" value="Reset"> 

</form> 
</body> 
</html> 

Note


Thanks to Ameen ASP.Net Boy for this tip on the forum.

Related


Published by jak58. Latest update on November 5, 2009 at 11:57 AM by jak58.
This document, titled "Outlook issue with HTML form," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).