How to send emails via JavaScript

Hi, I’m trying to make a sign in for my website and I’m trying to make a bot that will send an email just to verify the email and 2 step auth. Is there a way I can sends emails via JavaScript?
btw if it’s possible I want to send html emails.

You can’t send emails with client side JavaScript if that is what you are asking. However, if you want to use NodeJS, there are lots of packages to choose from. I’ve heard good things about nodemailer:

https://nodemailer.com/about/

2 Likes

Here’s an article that helped me a lot on sending emails on NodeJS (with Gmail), and last time I shared it with a few people, they also found it useful:

https://medium.com/@nickroach_50526/sending-emails-with-node-js-using-smtp-gmail-and-oauth2-316fe9c790a1

1 Like

I was following the article and then I got stuck on a part.
When I was on the “configure consent screen” part it was supposed to let me name my “product” but instead I got to this: !

If you have a reputable domain and setup dkim you can use

2 Likes

Most *.glitch.me emails won’t bounce anymore, but you should only use them for testing!

1 Like

glitch.me doesn’t seem to be on sorbs, but I’m sure its on other lists

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.