AldiAgeng / node-send-email-example

How to send email using nodejs (nodemailer) after May 30 2022 google has removed the less secure apps option

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node Send Email Using Nodemailer after -> (Less Secure App & Your Gmail Account (May 30 2022))

Alt text

How to Solve the Problem

  1. Clone the repo

    git clone https://github.com/AldiAgeng/node-send-email-example.git
  2. Install packages

    npm install
  3. Next Step

    - Manage your google account
    - Go to security
    - Enable 2FA in your gmail account
    Alt text

    - Create app password
      - Select app : Mail
      - Select device : Other (Custom name)
      - Generate
      - Copy the app password
    Alt text

    - Add .env file in the root directory
    - Add email and Recipients email in .env file
    - paste the app password to .env file
  4. Run the app

    npm start

About

How to send email using nodejs (nodemailer) after May 30 2022 google has removed the less secure apps option


Languages

Language:JavaScript 80.8%Language:Shell 19.2%