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:
parent
6d7c536a7e
commit
772202dc6e
2
.env
2
.env
|
|
@ -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
|
||||||
|
|
|
||||||
2
.env.dev
2
.env.dev
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user