If you received an error message saying "Invalid replyTo address", this could be the result of adding multiple
For example, lets say your form contained an input like this:
<input type="text" name="email" id="email">
And later you had another input like this:
<input type="text" name="email" id="phone">
You can see above that both inputs have the
name="email" attribute, even though the second one is supposed to collect a phone number. This is a problem.
When we receive a submission from this form we go through this process:
- When there are two inputs with the same name, we combine them into a single comma separated value. So if someone submitted this form with "email@example.com" in the email input, and "222-2222" in the phone input, we would convert this into a single
- We treat inputs with
name="_replyto"a special way. We use the email value to set the "reply to" address on the submission email that we send you. (see Email "reply to" address.) However in this case, the email address is invalid. (It is a comma separated list, not an email address.) That's why we display an error.
The solution is to use a name attribute that's more appropriate for the data you're collecting. For example, above, you could change the second input to:
<input type="text" name="phone" id="phone">
At that point your form should work.