diff --git a/lib/mail.ts b/lib/mail.ts index 9d7b409..8b5c0ee 100644 --- a/lib/mail.ts +++ b/lib/mail.ts @@ -1,5 +1,11 @@ import nodemailer from 'nodemailer'; +console.log('SMTP Config:', { + host: process.env.SMTP_HOST, + port: process.env.SMTP_PORT, + secure: process.env.SMTP_SECURE, + user: process.env.SMTP_USER +}); const transporter = nodemailer.createTransport({ host: process.env.SMTP_HOST, port: parseInt(process.env.SMTP_PORT || '587'), @@ -8,6 +14,9 @@ const transporter = nodemailer.createTransport({ user: process.env.SMTP_USER, pass: process.env.SMTP_PASS, }, + tls: { + rejectUnauthorized: false + } }); export const sendEmail = async ({ to, subject, html }: { to: string; subject: string; html: string }) => { diff --git a/next-env.d.ts b/next-env.d.ts index 9edff1c..c4b7818 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.