-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |