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 <noreply@anthropic.com>
This commit is contained in:
parent
f1a4da7787
commit
59b37fb018
|
|
@ -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 <noreply@jeffemmett.com>',
|
||||
from: process.env.EMAIL_FROM || 'Valley of the Commons <newsletter@valleyofthecommons.com>',
|
||||
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 <noreply@jeffemmett.com>',
|
||||
from: process.env.EMAIL_FROM || 'Valley of the Commons <newsletter@valleyofthecommons.com>',
|
||||
to: adminRecipients.join(', '),
|
||||
subject: adminEmail.subject,
|
||||
html: adminEmail.html,
|
||||
|
|
|
|||
|
|
@ -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 <noreply@jeffemmett.com>',
|
||||
from: process.env.EMAIL_FROM || 'Valley of the Commons <newsletter@valleyofthecommons.com>',
|
||||
to: application.email,
|
||||
subject: confirmEmail.subject,
|
||||
html: confirmEmail.html,
|
||||
|
|
|
|||
|
|
@ -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 <noreply@jeffemmett.com>',
|
||||
from: process.env.EMAIL_FROM || 'Valley of the Commons <newsletter@valleyofthecommons.com>',
|
||||
to: signup.email,
|
||||
subject: email.subject,
|
||||
html: email.html,
|
||||
|
|
|
|||
Loading…
Reference in New Issue