Nestjs Send Email using the Mailer Module
Vložit
- čas přidán 13. 12. 2023
- To send email using ONLY the Nodemailer package, see: • Nestjs Send Email usin...
Learn how to configure and send emails in Nest js applications using the mailer module and reusable codes.
We'll use .env environment variables to save the credentials for the email service. - Věda a technologie
Guys, there is a security issue with the mailer module used in this tutorial, as pointed out by @inanesilence. There is a workaround suggested here: github.com/nest-modules/mailer/pull/1021, or simply use nodemailer directly: czcams.com/video/Pu1YP5PZKFc/video.html
I love you so much!
How to use only nodemailer to send the emails: czcams.com/video/Pu1YP5PZKFc/video.html
Mailer module is deprecated. High risk to this implementation in production.
Thanks for pointing that out! I guess you're referring to this issue: github.com/nest-modules/mailer/pull/1021
Guys, there is a workaround suggested on the page as well, or simply use nodemailer directly. I'll see if I can make a follow up video using nodemailer
@@ZestMade exactly. Using node mailer directly
@@ZestMade I have a problem sending an email using "smtp", I get an error "Error: Invalid login: 535-5.7.8 Username and Password not accepted."
Gmail security changed.
Although I was able to create the application password, the problem continues.
Any solution?
I see they fixed the error. Is it suitable for continued use?