Email field not working with space

If user enters any spaces after email in From field of the contact form widget, it fails. The plugin – should “strip” spaces out – and send the email. This is a bug, I had User complain – they could not use this form – and had no idea what to do.

  • Nithin
    • Support Wizard

    Hello VirtualArtists,

    As discussed in chat, I’m bringing this into our developers attention, so that they could give a closer look at it, and correct this in the next plugin update asap. As mentioned in the chat, the temporary workaround would be to edit the plugin file, under /wp-content/plugins/contact-form/contact-form.php

    On Line 363, change the following line, from:

    <input class="text" type="text" name="email" id="cw_email-<?php echo $cw_uniqid; ?>" value="">


    <input class="text" type="email" name="email" id="cw_email-<?php echo $cw_uniqid; ?>" value="">

    Have a nice day ahead. :slight_smile:

    Best Regards,


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.