mime change

This commit is contained in:
alma 2025-04-24 16:45:30 +02:00
parent 126f243266
commit 1a35e16357

View File

@ -38,11 +38,11 @@ export async function POST(request: Request) {
); );
} }
// Create SMTP transporter // Create SMTP transporter with Infomaniak SMTP settings
const transporter = nodemailer.createTransport({ const transporter = nodemailer.createTransport({
host: credentials.host, host: 'smtp.infomaniak.com', // Infomaniak's SMTP server
port: credentials.port, port: 587, // Standard SMTP port with STARTTLS
secure: true, secure: false, // Use STARTTLS
auth: { auth: {
user: credentials.email, user: credentials.email,
pass: credentials.password, pass: credentials.password,