Ask coding questions

← Back to all posts
Does anyone know how to make a form that sends and email on click?
78JonathanForni (9)

I have tried several different ways and cant seem to figure it out.
I want to add a form that does this in the Index.html file.

Comments
hotnewtop
xxpertHacker (931)

Not quite what you want, but:

<form action="mailto:[email protected]">
  <button type="submit">Send Email</button>
</form>
robowolf (550)

You could use Flask to get a response and use smtplib to send an email.