Home > Net >  How to automatically send emails in html
How to automatically send emails in html

Time:12-18

I am making a form and I want it to email me whenever somebody completes it. Does anybody know if this can be done in HTML alone or if this has to utilize something more? So basically I want to know if it is possible for when a button is pressed, if that can send an email. Thank You!

CodePudding user response:

<a href="mailto:[email protected]?subject=Feedback&body=Message">
Send Feedback
</a>

You could embed this anchor tag into a button, the data from the form could be sent via the body part of the anchor tag.

CodePudding user response:

<form action="mailto:[email protected]?Subject=Mail Subject" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name"><br>
E-mail:<br>
<input type="text" name="mail"><br>
Comment:<br>
<input type="text" name="comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>

This is the process of sending mail that can be done with html without using a different language.

  • Related