i have a simple contact us form and i need to send an email on submit.i tried with "mailto" in my local machine and it's not working.is there any other simple mechanism to send an email in HTML.following is the code i'm using now
<html>
<body>
<h3>Send e-mail to someone@example.com:</h3>
<form action="MAILTO:yourmail@mail.com" method="post" enctype="text/plain">
Name:<br />
<input type="text" name="name" value="your name" /><br />
E-mail:<br />
<input type="text" name="mail" value="your email" /><br />
Comment:<br />
<input type="text" name="comment" value="your comment" size="50" />
<br /><br />
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
HTML can't send emails itself. You'll need a scripting language to do that.
mailto:
goes inside an <a>
tag's href
attribute, like this:
<a href="mailto:yourmail@mail.com">yourmail@mail.com</a>
However, that will simply open the default email client on the user's machine, if one is available and won't actually send anything by itself.