Invalidate email with single letter domain extension

This topic has 4 replies, 2 voices, and was last updated 1 years, 9 months ago ago by Rose Tyler

  • Avatar: Mircea
    Mircea
    Participant
    March 2, 2023 at 08:51

    Hello. The contact form currently accepts email with single letter domain extension (for example email@domain.c). Can you tell me where I can find the validation function so I can change the code to reject this particular case?

    I tried to search the forum for this topic and I found some answers, but I couldn’t find the location of the code.

    Thanks.

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 2, 2023 at 12:01

    Hello, Mircea,

    Thank you for reaching out to us.
    Do you mean the contact form created by the Contact form 7 plugin?

    Kind Regards,
    8theme team

    Avatar: Mircea
    Mircea
    Participant
    March 2, 2023 at 13:17

    Yes. I tried editing functions.php by adding the validation code, but it doesn’t work, so I’m assuming there is a script that is overriding this.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 2, 2023 at 15:11

    Hello, Mircea,

    Thank you for your response. This plugin is free and its features are not dependent on our theme. We suggest that you contact support here for further assistance – https://wordpress.org/support/plugin/contact-form-7/

    Kind Regards,
    8theme team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘invalidate email with single letter domain extension’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.