File Upload class 3

Sending emails to users when an entry is created in DB

Steps:

  • Install nod emailer dependency using npm i nodemailer

  • generate your email password By following these steps:

  1. Go to your Gmail profile

  2. Click on Manage your Google account

  3. Click on Security

  4. Now Go to 2 step verification

  5. This 2-step verification sends an OTP on the registered mobile No.

  6. Fill in the OTP and you see a password.

💡
IMP:- save this password to any safe folder. Once you create a password you will not be able to create it again

Now follow this code