If you receive an error code with
mailer-code 400 saying "Invalid replyTo address". You may also see
code 2. This is due to you entering an invalid
name attribute. This could also be the result of you having multiple
name attributes. To fix the error, make sure you only send us one valid email and it will process successfully.
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 "firstname.lastname@example.org" in the email input, and "222-2222" in the phone input, we would convert this into a single
- We treat inputs with
name="email"a special way. We use the email 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 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 will work.