WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Form will allow a space in the field (9 posts)

  1. nobby
    Member
    Posted 1 year ago #

    When completing the form, it fails to send if there is a space in the name, for example:

    Bob Smith (makes the send fail)
    BobSmith (works fine)

    I have never noticed this issue with contect 7 before, is this a bug in the latest version?

    Does anyone have a fix?

    thanks in advance

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    What are in your mail fields?

  3. nobby
    Member
    Posted 1 year ago #

    As below:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <p>Your Name (required)
        [text* your-name] </p>
    
    <p>Your Email (required)
        [email* your-email] </p>
    
    <p>Your Phone Number (required)
        [text* phone] </p>
    
    <p>Your Message
        [textarea your-message] </p>
    
    <p>[submit "Send"]</p>

    Seems fine to me, i must have setup Contact 7 form loads of times and never come across this issue before.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    So what are in the To, From, Subject and Additional headers fields in the Mail section?

  5. nobby
    Member
    Posted 1 year ago #

    Body

    From: [your-name]
    Email: [your-email]
    Phone: [phone]
    
    Message Body:
    [your-message]

    Mail:

    To: my email address
    From: [your-name] <[your-email]>
    Subject: Enquiry via Website

    Nothing out of the ordinary, as I say, it works perfect so long as I dont leave a space between first and surname!

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Try changing the From line to

    From: "[your-name]" <[your-email]>

  7. nobby
    Member
    Posted 1 year ago #

    Thanks, but this makes no difference.

  8. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    OK. Then check your server log. If you can't find any clue, try deactivating all other plugins and switching to the default theme.

  9. nobby
    Member
    Posted 1 year ago #

    Done, switched off all plugins (all of which I have used many times with Contact7, without issue), no change. So i tried default theme, no change either. I am still unable to send if there is a space in the name.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic