i’m using EmailJS for creating and sending email messages.
Right now, when I submit data from a form, a message arrives in my Gmail account as expected, but the dynamic values, the ones found in {{ }} in the EmailJS template, barely show up.
Here’s example:
my template looks like this:
Hi,
You've got the message from:
{{user_email}}
{{messageSubject}}
{{message}}
And here’s the code of using these dynamic values:
<input
type="text"
name="message_subject"
placeholder="Your message subject..."
{...register("messageSubject")}
/>
<input
type="email"
name="user_email"
placeholder="Your email..."
{...register("userEmail")}
/>
<textarea
name="message"
placeholder="Describe your problem or question..."
className={styles.textarea}
{...register("userMessage")}
/>
And when i submitting this data, i only receive message variable, others two are not showing up
Am i missing something, because i guess i’m using name attributes correctly, and they’re matching to the variables names