• I’m getting the error “Invalid mailbox syntax is used” when trying to add a hidden email field as the primary email recipient under the Mail tab using the mail-tags.

    the input field is populated on the front end with the email address and they are valid addresses.

    <span class="wpcf7-form-control-wrap member-email"><input type="hidden" name="member-email" value="email@address.com" size="40" class="wpcf7-form-control wpcf7dtx-dynamictext wpcf7-dynamichidden" aria-invalid="false"></span>

    not been able to get this working with either regular hidden custom fields or Contact Form 7 – Dynamic Text Extension custom fields.

    if read the page https://contactform7.com/configuration-errors/invalid-mailbox-syntax/ and it looks to me the email address is ok.

    lastly, if i use the mail tag in the body of the email it prints correctly.

    any ideas people, i’m out of them!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Why don’t you just put the email@address.com into the recipient field?

    Thread Starter Leon Harris

    (@leonharris)

    hi Takayuki, thanks for getting back to me.

    unfortunately the field is dynamically generated so i can’t do that.

    if i look at the HTML on the front-end of the site, each of the form pages has a different email address added to the hidden field and all appears to be working correctly.

    it’s just using that mail-tag in the recipient field that’s causing the issue.

    shall i provide a URL?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Then use email* form-tag instead and make it invisible with CSS.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invalid mailbox syntax is used’ is closed to new replies.