Support » Plugin: Contact Form 7 » “Invalid mailbox syntax” with valid mailbox syntax

  • Resolved qaws

    (@qaws)


    Hi, if I validate my form I get the error “Invalid mailbox syntax is used in the Reply-To field.”

    My “Additional Headers” box contains the following:
    Reply-To: [text-248] <[email-562]>

    At the top of the page it says:

    In the following fields, you can use these mail-tags:
    [text-248] [email-562] [menu-215] [your-message]

    My mail-tags are defined as:

    [text* text-248]
    [email email-562]

    Given that the mail-tags in the Additional Headers match the ones it says I can use, and that the Reply-To is in the correct format, what is invalid? ‘text-248′ is the form-filler’s name and ’email-562′ is their e-mail address.

    Thanks.

Viewing 4 replies - 16 through 19 (of 19 total)
  • @beckhall sorry for replying so late I didn’t notice the email notification until now. Your additional header should be as following:
    Reply-To: [your-email]

    The shortcode (content of square brackets) should contain only field name, nothing else. You have available shortcodes in the header of the settings of your contact form (on tab Mail) just under the text In the following fields, you can use these mail-tags: just keep in mind this list of shortcodes is updated on form save so when you change your form you need to save it to see updated codes. Let me know if it worked for you.

    @lorinc you say we need to
    ‘in your “Form” part you should have following tag: [email* your-email] and in Additional Headers you should have Reply-To:<[your-email]>’
    I don’t know where in my form I need to put the [email* your-email] – where do I put this into my form (copied below)
    Thanks

    <p><label for=”name”>Name:</label>
    <input type=”name” id=”name” name=”Name” /></p>
    <p><label for=”Businessname”>Business Name:</label>
    <input type=”Businessname” id=”Businesname” name=”BusinessName” /></p>
    <p><label for=”email”>Email:</label>
    <input type=”email” id=”email” name=”Email” /> </p>
    <p><label for=”phone”>Phone:</label>
    <input type=”tel” id=”phone” name=”phone” /></p>
    <div class=”clear”></div>
    <p>[textarea your-message class:TCGmsg placeholder “What can I help you with?”] </p>

    <p class=”tcgContactBlocks”>[submit “GET IN TOUCH”]</p>

    @espleyk But this is not how you supposed to create forms in CF7. You should use shorcodes. Check out some YouTube tutorials.

    For example have look on this one:
    https://youtu.be/4-Zcbo1Bxx0?t=330
    or basically any other.

    K H

    (@katinkaspirituality)

    What worked for me (at least to get rid of the warnings) is the following.

    In the ‘mail’ tab use

    to: your@email.com
    from: [your-name] <your@email.com>
    additional headers: ‘Reply-To:[your-email]’

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘“Invalid mailbox syntax” with valid mailbox syntax’ is closed to new replies.