more logs i'll be damn
This commit is contained in:
parent
281325c9db
commit
5b675c21ba
@ -30,7 +30,7 @@ const validateInput = (data: any) => {
|
||||
}
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
const agent = req.headers.get("x-forwarded-for") ?? "damn";
|
||||
const agent = req.headers.get("cf-connecting-ip") ?? req.headers.get("x-forwarded-for") ?? "damn";
|
||||
|
||||
let data;
|
||||
try {
|
||||
|
||||
@ -37,6 +37,9 @@ export async function sendEmail(name: string, email: string, message: string) {
|
||||
const rawMessage = `From: ${name}\nEmail: ${email}\n${trimTooLong(message, 5000)}`;
|
||||
const messageHTML = sanitize(escape(rawMessage));
|
||||
|
||||
console.log(process.env.SMTP_USER);
|
||||
console.log(process.env.SMTP_REPLY);
|
||||
|
||||
await transporter.sendMail({
|
||||
from: `Nonszy Contact Form <${process.env.SMTP_USER}>`,
|
||||
replyTo: email,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user