#Express.js email verification
20 messages · Page 1 of 1 (latest)
Yes. That is the best option. Some email service providers also offer rest api or a client library. So let that be up to who you use for that.
What if i want to use e-mail on my hosting?
I bought server, i can host Node js apps, create emails etc
how should i implement it?
@wet breach do not attempt to host smtp yourself. It's an extremely long, slow and tedious process. Every provider will blacklist you for spam. It's a mess
If your hosting provider offers mail, that's good. Nodemailer and go.
yes, i mean email on my hosting
i can create email
how should I create confirmation link?
and how long should I store it?
I suggest using a jwt with an expiration on.
This way you don't need to store it
@wet breach yep. jwt has a field for that.
iat for issue time and exp for expiration
The library has an option for it too
ok thanks