Skip to content Skip to sidebar Skip to footer

Is There A Way To Send An Email With Data From Input Without Php Or Javascript Just Pure Simple Html?

I have HTML form with a textbox where user enter his email - let say to register for a newsletter and a button to join. When clicking the button I'd like to send myself an email w

Solution 1:

No, there is no way you can send email using pure html. Email is sent over SMTP protocol. A browser operates in HTTP protocol. So it's not possible to send email even using pure javascript. Only server can send data using SMTP protocol.


Solution 2:

No because you can not send an E-Mail without using an SMTP server. This server must be contacted by PHP or another server-side script (server must receive a form request and process it). You can not contact a SMTP server via pure HTML (that would be really insecure btw).

Regarding mailto: This only works if your clients have installed a mail client on their local machine. This mail client must be properly configured in order to - guess what - contact an SMTP server in order to send the mail.

However it is possible passing a subject via mailto: https://css-tricks.com/snippets/html/mailto-links/


Post a Comment for "Is There A Way To Send An Email With Data From Input Without Php Or Javascript Just Pure Simple Html?"