From 772202dc6e6f387ea7f563e67d076e161eb2ae45 Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 24 Nov 2025 14:07:12 +0100 Subject: [PATCH] fix: configure Gmail App Password and SSL for contact form emails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update SMTP_PASS with Gmail App Password in all environment files - Add TLS configuration to ignore self-signed certificate errors - Fix email sending functionality for contact form 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .env | 2 +- .env.dev | 2 +- .env.preprod | 2 +- .env.production | 2 +- src/services/email.service.js | 3 +++ 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 1b963649..9c3a4710 100755 --- a/.env +++ b/.env @@ -18,5 +18,5 @@ SESSION_SECRET=thetiptopsessionsecret SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=thetiptopgr3@gmail.com -SMTP_PASS=Dsp@2025 +SMTP_PASS=xydqvyrxcwwsiups EMAIL_FROM=thetiptopgr3@gmail.com diff --git a/.env.dev b/.env.dev index f7181dd2..d2f324cd 100644 --- a/.env.dev +++ b/.env.dev @@ -25,5 +25,5 @@ FACEBOOK_APP_SECRET=e6889f4339d140c218f1df177149893f SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=thetiptopgr3@gmail.com -SMTP_PASS=Dsp@2025 +SMTP_PASS=xydqvyrxcwwsiups EMAIL_FROM=thetiptopgr3@gmail.com diff --git a/.env.preprod b/.env.preprod index 259e1f5d..8962b6f5 100644 --- a/.env.preprod +++ b/.env.preprod @@ -25,5 +25,5 @@ FACEBOOK_APP_SECRET=e6889f4339d140c218f1df177149893f SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=thetiptopgr3@gmail.com -SMTP_PASS=Dsp@2025 +SMTP_PASS=xydqvyrxcwwsiups EMAIL_FROM=thetiptopgr3@gmail.com diff --git a/.env.production b/.env.production index 5819a3f2..00c381b2 100644 --- a/.env.production +++ b/.env.production @@ -25,5 +25,5 @@ FACEBOOK_APP_SECRET=e6889f4339d140c218f1df177149893f SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=thetiptopgr3@gmail.com -SMTP_PASS=Dsp@2025 +SMTP_PASS=xydqvyrxcwwsiups EMAIL_FROM=thetiptopgr3@gmail.com diff --git a/src/services/email.service.js b/src/services/email.service.js index c201c7df..1e912ab9 100644 --- a/src/services/email.service.js +++ b/src/services/email.service.js @@ -25,6 +25,9 @@ const createTransporter = () => { user: process.env.SMTP_USER, pass: process.env.SMTP_PASS, }, + tls: { + rejectUnauthorized: false // Ignore les erreurs de certificat SSL + } }); };