This commit is contained in:
2026-01-22 20:57:00 +00:00
parent 278f821328
commit f17840e16b
2 changed files with 4 additions and 3 deletions

4
.gitignore vendored
View File

@@ -2,3 +2,7 @@ node_modules
.next .next
.git .git
.env.local .env.local
.env.production
.docker_compose.yaml
.Dockerfile
.dockerignore

View File

@@ -54,7 +54,6 @@ export async function POST(req: Request) {
); );
} }
// ✅ 2. ONLY NOW send emails
const transporter = nodemailer.createTransport({ const transporter = nodemailer.createTransport({
host: process.env.SMTP_HOST!, host: process.env.SMTP_HOST!,
port: Number(process.env.SMTP_PORT), port: Number(process.env.SMTP_PORT),
@@ -65,7 +64,6 @@ export async function POST(req: Request) {
}, },
}); });
// Admin email
await transporter.sendMail({ await transporter.sendMail({
from: `"Contact Form" <${process.env.SMTP_USER!}>`, from: `"Contact Form" <${process.env.SMTP_USER!}>`,
to: process.env.CONTACT_EMAIL!, to: process.env.CONTACT_EMAIL!,
@@ -78,7 +76,6 @@ export async function POST(req: Request) {
`, `,
}); });
// Confirmation email
await transporter.sendMail({ await transporter.sendMail({
from: `"4l3ks.com" <${process.env.SMTP_USER!}>`, from: `"4l3ks.com" <${process.env.SMTP_USER!}>`,
to: email, to: email,