Skip to content

Commit

Permalink
fix: reject unauthorized param mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed Sep 14, 2023
1 parent 6688e4f commit 3d90dfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webapp-next/utils/mailter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export async function sendMail(
) {
var transportOptions: any = {
host: process.env.NODEMAILER_HOST,
port: process.env.NODEMAILER_PORT
port: process.env.NODEMAILER_PORT,
tls: {
rejectUnauthorized: false
}
};

if (process.env.NODEMAILER_USER && process.env.NODEMAILER_PASSWORD) {
Expand Down

0 comments on commit 3d90dfc

Please sign in to comment.