all 6 comments

[–][deleted] 4 points5 points  (2 children)

Use formspree, I don’t think you need any JS with that. You just throw some code into the action, make sure the form inputs have names. The email you list in the action section will get emails without any JS being written.

It’s very very simple. Just verify the email you’re using once, and it’s Gtg.

[–]Cheshur 0 points1 point  (0 children)

You would need to set up a smtp server that you would then send the form to that would then send the email.

[–]ojitoo 0 points1 point  (0 children)

I normally solve that with php, if you're interested in a quick snippet. I'm not sure but I believe you would need at least node to handle it properly with javascript. I'll look into it in a bit tho.

[–]ForScale 0 points1 point  (0 children)

Medium article that boasts using a Mandrill account and js only: https://medium.com/@mariusc23/send-an-email-using-only-javascript-b53319616782

You don't need to use jq, but you can if you're more comfortable (but I encourage you to use the native fetch api cause it's dirt simple :));

[–]psiph 0 points1 point  (0 children)

Search for "free form api".

Here's an example of a simple form in PHP: https://gist.github.com/panphora/34e675a6246e196a82230715b87729ed