Send email from html form without php

72,051

Solution 1

There's no perfect solution because they are still encoded as url variables. Setting the enctype to plaintext makes it somewhat more acceptable.

<form action="mailto:[email protected]" enctype="text/plain">
<textarea></textarea>
</form>

Solution 2

Check out formspree.

https://github.com/asm-products/formspree

For action you simply put:

<form action="http://formspree.io/[email protected]" method="post">
<input type="text" name="name">
<input type="email" name="_replyto">
<input type="submit" value="Send">

After verifying your email after the first send this will email you the contents of the form. One thing to keep in mind is that this will take the input names. If you do not include input names it won't send you that form field.

Solution 3

I don't believe you can within the website. As the others stated, you can use mailto:[email protected], but that is not automatic and it opens the user's default email editor. You could use http://www.emailmeform.com/ though. It lets you make a form and it will send an email to you.

Solution 4

in your html form provide a mailto action.

for example

<form action="mailto:[email protected]">
.....
</form>
Share:
72,051
Max Hudson
Author by

Max Hudson

Updated on July 09, 2022

Comments

  • Max Hudson
    Max Hudson almost 2 years

    Is there a service that allows you to post a form to it from an html page (my php mail isn't working temporarily and I need a quick solution) and it will automatically send an email with specified content to a specified address?

    The address it comes from is insignificant.