How to send an email from JavaScript
You can’t send an email directly with javascript. You can, however, open the user’s mail client: window.open(‘mailto:test@example.com’); There are also some parameters to pre-fill the subject and the body: window.open(‘mailto:test@example.com?subject=subject&body=body’); Another solution would be to do an ajax call to your server, so that the server sends the email. Be careful not to allow anyone … Read more