How can I make, when clicking a button, send an email with the data included from the form?

前端 未结 2 2069
误落风尘
误落风尘 2020-12-22 06:39

So I simply need to collect the information from a HTML form I made and send it via an email. How can I achieve this? Do I need PHP or some stuff like that? What should I pu

2条回答
  •  天涯浪人
    2020-12-22 07:30

    PHP is certainly not the only way to send e-mail from a web form, but it is a very common method (especially for people creating their first form).

    Here is one reference that may help you to get started, and explain why other methods (i.e. HTML-only, JavaScript) don't work for your needs:

    http://www.html-form-guide.com/email-form/html-email-form.html

提交回复
热议问题