From 59b37fb0181079dc14168960843217ee4f65245b Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sun, 1 Mar 2026 10:58:47 -0800 Subject: [PATCH] fix: switch SMTP from noreply@jeffemmett.com to newsletter@valleyofthecommons.com Update default SMTP_USER and EMAIL_FROM across all three API handlers (mollie, application, waitlist-db) to use the domain-specific newsletter mailbox. Infisical secrets also updated to match. Co-Authored-By: Claude Opus 4.6 --- api/application.js | 6 +++--- api/mollie.js | 4 ++-- api/waitlist-db.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/application.js b/api/application.js index ab168ea..0ff0c90 100644 --- a/api/application.js +++ b/api/application.js @@ -18,7 +18,7 @@ const smtp = nodemailer.createTransport({ port: parseInt(process.env.SMTP_PORT || '587'), secure: false, auth: { - user: process.env.SMTP_USER || 'noreply@jeffemmett.com', + user: process.env.SMTP_USER || 'newsletter@valleyofthecommons.com', pass: process.env.SMTP_PASS || '', }, tls: { rejectUnauthorized: false }, @@ -300,7 +300,7 @@ module.exports = async function handler(req, res) { try { const confirmEmail = confirmationEmail(application); const info = await smtp.sendMail({ - from: process.env.EMAIL_FROM || 'Valley of the Commons ', + from: process.env.EMAIL_FROM || 'Valley of the Commons ', to: application.email, subject: confirmEmail.subject, html: confirmEmail.html, @@ -316,7 +316,7 @@ module.exports = async function handler(req, res) { const adminEmail = adminNotificationEmail(application); const adminRecipients = (process.env.ADMIN_EMAILS || 'jeff@jeffemmett.com').split(','); const info = await smtp.sendMail({ - from: process.env.EMAIL_FROM || 'Valley of the Commons ', + from: process.env.EMAIL_FROM || 'Valley of the Commons ', to: adminRecipients.join(', '), subject: adminEmail.subject, html: adminEmail.html, diff --git a/api/mollie.js b/api/mollie.js index 986f115..2952aed 100644 --- a/api/mollie.js +++ b/api/mollie.js @@ -22,7 +22,7 @@ const smtp = nodemailer.createTransport({ port: parseInt(process.env.SMTP_PORT || '587'), secure: false, auth: { - user: process.env.SMTP_USER || 'noreply@jeffemmett.com', + user: process.env.SMTP_USER || 'newsletter@valleyofthecommons.com', pass: process.env.SMTP_PASS || '', }, tls: { rejectUnauthorized: false }, @@ -221,7 +221,7 @@ async function handleWebhook(req, res) { const application = appResult.rows[0]; const confirmEmail = paymentConfirmationEmail(application); const info = await smtp.sendMail({ - from: process.env.EMAIL_FROM || 'Valley of the Commons ', + from: process.env.EMAIL_FROM || 'Valley of the Commons ', to: application.email, subject: confirmEmail.subject, html: confirmEmail.html, diff --git a/api/waitlist-db.js b/api/waitlist-db.js index c13b087..6e65433 100644 --- a/api/waitlist-db.js +++ b/api/waitlist-db.js @@ -17,7 +17,7 @@ const smtp = nodemailer.createTransport({ port: parseInt(process.env.SMTP_PORT || '587'), secure: false, auth: { - user: process.env.SMTP_USER || 'noreply@jeffemmett.com', + user: process.env.SMTP_USER || 'newsletter@valleyofthecommons.com', pass: process.env.SMTP_PASS || '', }, tls: { rejectUnauthorized: false }, @@ -154,7 +154,7 @@ module.exports = async function handler(req, res) { try { const email = welcomeEmail(signup); const info = await smtp.sendMail({ - from: process.env.EMAIL_FROM || 'Valley of the Commons ', + from: process.env.EMAIL_FROM || 'Valley of the Commons ', to: signup.email, subject: email.subject, html: email.html,