Skip to content

Commit

Permalink
secure mail
Browse files Browse the repository at this point in the history
  • Loading branch information
kenu committed Apr 11, 2024
1 parent 3c2bd2c commit 77393ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ package-lock.json
pnpm-lock.yaml
*.local
a.json
coverage
sonar-project.*
.scannerwork
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"dayjs": "^1.11.10",
"googleapis": "^134.0.0",
"mariadb": "^3.2.3",
"nodemailer": "^6.9.13",
"sequelize": "^6.37.1",
"youtube-transcript": "^1.1.0"
}
Expand Down
6 changes: 4 additions & 2 deletions simplemail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ const nodemailer = require("nodemailer");

const transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
port: 587,
secure: false, // Use `true` for port 465, `false` for all other ports
port: 465,
secure: true,
requireTLS: true,
secured: true,
auth: {
user: "kenu.heo@xmail.com",
pass: "**** qiym **** bhlq", // https://myaccount.google.com/apppasswords
Expand Down

0 comments on commit 77393ef

Please sign in to comment.