Neah version mail forward fix 7
This commit is contained in:
parent
cdc26d0ada
commit
772255a5d4
@ -41,9 +41,10 @@ export async function POST(request: Request) {
|
|||||||
const { to, cc, bcc, subject, body, attachments } = await request.json();
|
const { to, cc, bcc, subject, body, attachments } = await request.json();
|
||||||
|
|
||||||
// Create a transporter using SMTP with the same credentials
|
// Create a transporter using SMTP with the same credentials
|
||||||
|
// Use port 465 for SMTP (Infomaniak's SMTP port)
|
||||||
const transporter = createTransport({
|
const transporter = createTransport({
|
||||||
host: credentials.host,
|
host: credentials.host,
|
||||||
port: credentials.port,
|
port: 465, // SMTP port for Infomaniak
|
||||||
secure: true, // Use TLS
|
secure: true, // Use TLS
|
||||||
auth: {
|
auth: {
|
||||||
user: credentials.email,
|
user: credentials.email,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user