fix: allow self-signed cert for Mailcow SMTP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f550fe0423
commit
99f9f0d681
|
|
@ -41,6 +41,7 @@ export async function POST(request: NextRequest) {
|
||||||
port: Number(process.env.SMTP_PORT) || 587,
|
port: Number(process.env.SMTP_PORT) || 587,
|
||||||
secure: false,
|
secure: false,
|
||||||
auth: { user: smtpUser, pass: smtpPass },
|
auth: { user: smtpUser, pass: smtpPass },
|
||||||
|
tls: { rejectUnauthorized: false },
|
||||||
})
|
})
|
||||||
|
|
||||||
await transporter.sendMail({
|
await transporter.sendMail({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue