So I have a server with ip, domain(www.example-sato.com), and have a nodejs/express.js app running on it.
When user registers I would like to send an email to the user with an sender like [email protected]
.
What generally should I do?
What I've used and find extremely easy to setup is nodemailer npm package. It has built-in SMTP transport, as well as the ability to use external ones. And it works pretty well on Windows, if that's a concern to you.
Installing postfix is an option, but you will still need npm package in order to use it. With nodemailer you can even use external STMP (or other) servers, like Gmail for example, which is very handy while in development. I mean you can use it with whatever mail server you want, if you don't like the built-in one :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With