• Resolved project13x

    (@project13x)


    Hi,

    I am using the dynamictext field to grab an email.

    However when I use this in the “TO” field it gives ?Invalid mailbox syntax is used. *The output of this field is just the email e.g. [email protected]

    When looking at the potential errors. Is this due to being a text field and not an ’emailfield?

    The email does gets send to the To emailadress, so it is working. But any idea how to remove the invalid syntax error?

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    You are exactly right in that it is due to being not an email form tag because you’re using our custom dynamictext or dynamichidden form tags.

    If it’s not email*, you’ll see an error because [your-email] can be empty or a non-email value. These are examples of bad form-tags:

    [email your-email] // Email, but not required
    [text* your-email] // Required, but not Email
    [select your-email “[email protected]” “[email protected]”] // Not required

    Contact Form 7 Documentation

    It is something I’ve been interested in looking into with a future update.

    If you’re using Contact Form 7 version 7.4.4 or above, you can add this to your wp-config.php file to suppress those pesky warnings:

    define('WPCF7_VALIDATE_CONFIGURATION', false);

    You can learn more about CF7’s configuration validator in their FAQ documentation here.

Viewing 1 replies (of 1 total)
  • The topic ‘custom field for email shows- Invalid mailbox syntax is used.’ is closed to new replies.