Neah version mail forward fix 7

This commit is contained in:
alma 2025-04-16 20:19:21 +02:00
parent cdc26d0ada
commit 772255a5d4

View File

@ -41,9 +41,10 @@ export async function POST(request: Request) {
const { to, cc, bcc, subject, body, attachments } = await request.json();
// Create a transporter using SMTP with the same credentials
// Use port 465 for SMTP (Infomaniak's SMTP port)
const transporter = createTransport({
host: credentials.host,
port: credentials.port,
port: 465, // SMTP port for Infomaniak
secure: true, // Use TLS
auth: {
user: credentials.email,