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

This commit is contained in:
chris 2026-06-07 00:27:56 -04:00
parent 2e119b03b2
commit 29e0cf2938

View File

@ -142,7 +142,7 @@ apiRouter.post('/contact', upload.array('photos', 3), async (req, res) => {
from: `"Beach Party Balloons" <${process.env.SMTP_USER}>`,
replyTo: `"${name}" <${email}>`,
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}`,
html: `<p><strong>Name:</strong> ${name}</p>
<p><strong>Email:</strong> <a href="mailto:${email}">${email}</a></p>