update
This commit is contained in:
1 parent
cc2b84dcad
commit
3bda7d6eb6
28 files changed
+2330
-49
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import nodemailer from "nodemailer";
|
||||
|
||||
// Transporter wird einmalig erstellt und bei jedem Funktionsaufruf wiederverwendet
|
||||
// (Next.js Server Actions laufen in einer Node-Umgebung, kein Cold-Start-Problem wie bei Edge Functions).
|
||||
export const transporter = nodemailer.createTransport({
|
||||
host: process.env.SMTP_HOST,
|
||||
port: Number(process.env.SMTP_PORT ?? 465),
|
||||
secure: process.env.SMTP_SECURE === "true", // true für Port 465, false für 587 (STARTTLS)
|
||||
auth: {
|
||||
user: process.env.SMTP_USER,
|
||||
pass: process.env.SMTP_PASSWORD,
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user