Skip to content

Commit

Permalink
Update mail.js
Browse files Browse the repository at this point in the history
add commiet
  • Loading branch information
Code-With-Abhishek-Kumar authored Aug 16, 2024
1 parent 904b500 commit 4c81921
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Express/ nodemailer/StarterCode/src/utils/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@
import nodemailer from "nodemailer";

const transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
host: "smtp.gmail.com", // SMTP server hostname
port: 465,
secure: true, // Use `true` for port 465, `false` for all other ports
auth: {
user: "[email protected]",
pass: "pkmc nlkp jmcx mlma",
user: "your email id", // Email address used for authentication
pass: "your password", // Password for the email address

},
});

export default transporter;

// Where to get password
// 1. Open Gmail
// 2. Click on your profile picture
// 3. Click on manage your google account
// 4 . Search App password and click on it
// 5. It will ask App name Enter any name Ex :- myApp
// 6. It will create a randam password copy it
// 7. and past inside pass pass: "your password", // Password for the email address

0 comments on commit 4c81921

Please sign in to comment.