fix: configure Gmail App Password and SSL for contact form emails

- 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 <noreply@anthropic.com>
This commit is contained in:
soufiane 2025-11-24 14:07:12 +01:00
parent 6d7c536a7e
commit 772202dc6e
5 changed files with 7 additions and 4 deletions

2
.env
View File

@ -18,5 +18,5 @@ SESSION_SECRET=thetiptopsessionsecret
SMTP_HOST=smtp.gmail.com SMTP_HOST=smtp.gmail.com
SMTP_PORT=587 SMTP_PORT=587
SMTP_USER=thetiptopgr3@gmail.com SMTP_USER=thetiptopgr3@gmail.com
SMTP_PASS=Dsp@2025 SMTP_PASS=xydqvyrxcwwsiups
EMAIL_FROM=thetiptopgr3@gmail.com EMAIL_FROM=thetiptopgr3@gmail.com

View File

@ -25,5 +25,5 @@ FACEBOOK_APP_SECRET=e6889f4339d140c218f1df177149893f
SMTP_HOST=smtp.gmail.com SMTP_HOST=smtp.gmail.com
SMTP_PORT=587 SMTP_PORT=587
SMTP_USER=thetiptopgr3@gmail.com SMTP_USER=thetiptopgr3@gmail.com
SMTP_PASS=Dsp@2025 SMTP_PASS=xydqvyrxcwwsiups
EMAIL_FROM=thetiptopgr3@gmail.com EMAIL_FROM=thetiptopgr3@gmail.com

View File

@ -25,5 +25,5 @@ FACEBOOK_APP_SECRET=e6889f4339d140c218f1df177149893f
SMTP_HOST=smtp.gmail.com SMTP_HOST=smtp.gmail.com
SMTP_PORT=587 SMTP_PORT=587
SMTP_USER=thetiptopgr3@gmail.com SMTP_USER=thetiptopgr3@gmail.com
SMTP_PASS=Dsp@2025 SMTP_PASS=xydqvyrxcwwsiups
EMAIL_FROM=thetiptopgr3@gmail.com EMAIL_FROM=thetiptopgr3@gmail.com

View File

@ -25,5 +25,5 @@ FACEBOOK_APP_SECRET=e6889f4339d140c218f1df177149893f
SMTP_HOST=smtp.gmail.com SMTP_HOST=smtp.gmail.com
SMTP_PORT=587 SMTP_PORT=587
SMTP_USER=thetiptopgr3@gmail.com SMTP_USER=thetiptopgr3@gmail.com
SMTP_PASS=Dsp@2025 SMTP_PASS=xydqvyrxcwwsiups
EMAIL_FROM=thetiptopgr3@gmail.com EMAIL_FROM=thetiptopgr3@gmail.com

View File

@ -25,6 +25,9 @@ const createTransporter = () => {
user: process.env.SMTP_USER, user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS, pass: process.env.SMTP_PASS,
}, },
tls: {
rejectUnauthorized: false // Ignore les erreurs de certificat SSL
}
}); });
}; };