My email server is rejecting many emails that are supposed to come to me from my forms. I believe this is because if email@example.com fills in a form it's not supposed to send emails from that address. The sending server doesn't have permission to send an email on behalf of aol.com and the inbound email server rejects due to DMARC rules. I would like to set the replyto field to firstname.lastname@example.org and the from field should be my email. Is there a way to do this in shopify?
Solved! Go to the solution
Then you can hide that field by editing your contact template or subscribe form on your theme, your code should look like this:
<input type="hidden" name="contact[email]" value="email@example.com" />
If you need more assistance please send us an email and we will respond ASAP.
Can I also add a reply-to field so I can capture the person's email filling out the form? I added an example below.
<input type="email" id="email" class="email-contact" name="contact[replyto]" value="" placeholder="Email Address" required="required" />
<input type="hidden" name="contact[email]" value="firstname.lastname@example.org" />
Yes, you can add extra fields with attribute name="contact[parameter]", all information on your form contact will be send to your email.
Yes, I understand that I can add custom fields. But it would great if shopify actually had documentation on the available fields that affect the email headers. Will the contact[replyto] actually go into the header so that when I receive the email and click reply in my email app it will reply to the address the user entered?