Update email configuration to use port 2525 for production server compatibility
This commit is contained in:
parent
70e90cab12
commit
5384438d28
1 changed files with 4 additions and 2 deletions
|
|
@ -5,7 +5,9 @@ import dotenv from 'dotenv';
|
|||
dotenv.config();
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
service: 'gmail',
|
||||
host: 'smtp.gmail.com',
|
||||
port: 2525,
|
||||
secure: false,
|
||||
auth: {
|
||||
user: process.env.GOOGLE_EMAIL,
|
||||
pass: process.env.GOOGLE_APP_PASSWORD,
|
||||
|
|
@ -34,4 +36,4 @@ export default async function handler(req: Request, res: Response) {
|
|||
res.setHeader('Allow', ['POST']);
|
||||
res.status(405).json({ message: `Method ${req.method} Not Allowed` });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue