Contact form: add emoji to subject, show event date instead of type
This commit is contained in:
parent
d026bc8217
commit
cd18bd3937
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user