ignore
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -2,3 +2,7 @@ node_modules
|
|||||||
.next
|
.next
|
||||||
.git
|
.git
|
||||||
.env.local
|
.env.local
|
||||||
|
.env.production
|
||||||
|
.docker_compose.yaml
|
||||||
|
.Dockerfile
|
||||||
|
.dockerignore
|
||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user