Additional Headers invalid mailbox syntax (Explained further)
-
Reading about this syntax error, which I got on some sites and not on others and could not figure out what was causing an error when on other sites it worked fine.
Example – Working on one site under Tab “Mail” and for “Additional Headers:
Reply-To: [your-email] Telephone: [tel-123]
Now going to another site, it did not work and got the red warning of an error
Example – Not working on a second site
Reply-To: [your-email] Telephone: [tel-456]
I could not figure out why the difference. Then reading this entry here:
Additional Headers invalid mailbox syntax
When that post spoke of the “asterisk” beside the tag name, such as
[email* your-email]
, that was the answer.This means we cannot insert any “additional headers” where the corresponding tag name does NOT have an asterisk included.
Using the examples above, the tag names for
email
andtel
MUST have an asterisk included in the settings under the Form tab, in order to insert the same tags in Additional Headers.Therefore, using the second example above, for those Additional Header entries to work, I must have the following under the Form Tab,
[email* your-email]
[tel* tel-456]
Without the asterisk, entering any tag for Additional Headers will not work and the error will pop-up.
Comment
I see this as very important to know. When I view the Contact Form 7 support page that apparently tried to explain this (https://contactform7.com/configuration-errors/invalid-mail-header/), it failed to include the requirement of matching tag asterisk.This means people who view the support page with the same issue, will never figure out what is wrong when they follow the support page information exactly.
I suggest that the Form 7 developer add that very important piece of information AND any other “important” information that is required for Additional headers to avert syntax errors.
Basically, if you want to provide support information like that support page, write it for those who know very little about tags, WordPress, coding, etc. Always include the “required” information, such as, “All that is required to make it work“, as I have show above, the need for the “asterisk” is definitely a requirement for the Additional Headers to work.
Are there other things required for Additional Headers to work, such as for more advanced settings?
- The topic ‘Additional Headers invalid mailbox syntax (Explained further)’ is closed to new replies.