Contact form: add emoji to subject, show event date instead of type

This commit is contained in:
chris 2026-06-07 00:27:50 -04:00
parent d026bc8217
commit cd18bd3937

View File

@ -151,7 +151,7 @@ apiRouter.post('/contact', upload.array('photos', 3), async (req, res) => {
from: `"Beach Party Balloons" <${process.env.SMTP_USER}>`, from: `"Beach Party Balloons" <${process.env.SMTP_USER}>`,
replyTo: `"${name}" <${email}>`, replyTo: `"${name}" <${email}>`,
to: process.env.CONTACT_TO, to: process.env.CONTACT_TO,
subject: `New Inquiry from ${name}${eventType ? `${eventType}` : ''}`, subject: `🎈 New inquiry from ${name}${eventDateFormatted ? `${eventDateFormatted}` : ''}`,
text: `Name: ${name}\nEmail: ${email}\nPhone: ${phone}\n${eventText}\n\nMessage:\n${message}`, text: `Name: ${name}\nEmail: ${email}\nPhone: ${phone}\n${eventText}\n\nMessage:\n${message}`,
html: `<p><strong>Name:</strong> ${name}</p> html: `<p><strong>Name:</strong> ${name}</p>
<p><strong>Email:</strong> <a href="mailto:${email}">${email}</a></p> <p><strong>Email:</strong> <a href="mailto:${email}">${email}</a></p>