here is a simple html code that enables you to send a message from your html page to any email of your choice below is a sample code
<!DOCTYPE html>
<html>
<body>
<h2>my message:</h2>
<form action="MAILTO:someone@example.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>
HOW IT WORKS
1.create a form and give the action to be equal MAILTO:give the desired email address
2. make your method POST since you are sending a message to an email method="post"
3. then make sure you text is encrypted to plain to enable free and content save delivery enctype="text/plain"
0 comments:
Post a Comment