How do you send emails using Javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do you send emails using Javascript?

I’m trying to work on a project that requires me to send an email using my email address to an email address that someone enters in a website. I only require the js code. Thanks!

31st Jul 2021, 11:39 AM
Ming Yang
Ming Yang - avatar
3 Answers
+ 6
Ming Yang Use smtp.js library to send mail using JS. https://smtpjs.com/v3/smtp.js
31st Jul 2021, 11:51 AM
A͢J
A͢J - avatar
+ 2
You can't send emails directly with JS.
31st Jul 2021, 11:44 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 2
Aleksei Radchenkov I’ve read online that you can use a server called smtp but it doesn’t work for me
31st Jul 2021, 11:46 AM
Ming Yang
Ming Yang - avatar