Answer the question
In order to leave comments, you need to log in
How to send an email using JS?
Tell me the simplest command to send a letter to the mail. Thanks in advance
Answer the question
In order to leave comments, you need to log in
You can even use pure HTML ;)<a href="mailto:[email protected]">Mailto</a>
You can do whatever you want with js. Validation, ajax, etc. But the sending process itself should do, for example, a php script))
Since JavaScript is executed on the client side (in the browser), it is not possible to send anything to the mail directly. It is necessary to organize a server, which will be engaged in sending.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question