Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Email contact form without PHP

I'd like to use a contact form for a website I'm creating, but PHP is not an option since the client doesn't wish to use it. Is there a clever way to work around this somehow, by sending email parameters (which is non-standard) perhaps, or by using an external contact form? Are there any good ones that don't use advertising and are easily modified to a different language for example?

Thank you.

like image 795
thomasmyrman Avatar asked Jul 10 '12 17:07

thomasmyrman


People also ask

Can you submit a form without PHP?

you don't have to use php for the form submission. You could even use JS for submitting a form. And the mailto haven't anything to do with a form submission. It would be better if you explain what you want to accomplish by doing this.

How do you send HTML form content to email?

There is no feature in HTML to send the form submission directly to an email address. What about “mailto” ? Using mailto: You can set the action field of the form as 'mailto'. In this case, the web browser invokes the email client to send the form submission to the email address specified.

What is Formspree io?

Formspree is a form backend, API and email service for HTML forms. It is the simplest way to embed custom contact us forms, order forms, or email capture forms.


1 Answers

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.

like image 167
Bhetzie Avatar answered Oct 08 '22 00:10

Bhetzie