Title: email checking on registration doesn&#8217;t validate
Last modified: May 3, 2017

---

# email checking on registration doesn’t validate

 *  Resolved [guypsemperis](https://wordpress.org/support/users/guypsemperis/)
 * (@guypsemperis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/email-checking-on-registration-doesnt-validate/)
 * Hi. First, thank you very much for helping me resolve my previous problem with
   setting up the registration page / MailGun validation.
 * Now that it is set up and I see that MailGun is being called, I have encountered
   a new problem. Invalid addresses do not cause an error to be shown, nor do they
   block registration.
    From looking at the `wpas_mailgun_check`, and at MailGun’s
   json response, I see that: 1. invalid emails are marked in the json as `"is_valid":
   false` 2. the only check that is performed on the values from MailGun’s response
   is whether it contains a value in `did_you_mean`…
 * According to the description in the SETTINGS under “Email Checking”:
    “When enabled,
   the plugin will make sure the e-mail address used is valid and can receive e-
   mails”
 * But when MailGun returns `"is_valid": false`, unless there is a value in `did_you_mean`,
   nothing is shown to the user.
 * Please correct me if this is not the case, but I would expect that a user would
   be blocked from completing registration in the case where the email that was 
   entered is deemed invalid. Is this the intended result?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [guypsemperis](https://wordpress.org/support/users/guypsemperis/)
 * (@guypsemperis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/email-checking-on-registration-doesnt-validate/#post-9108217)
 * Sooo… I decided to just code a fix myself – of course, not by changing the WPAS
   plugin. Thankfully, (which is to say, **thank you**), the plugin is well written
   and adding the validation that I wanted to user registration was a relatively
   simple matter of calling:
    `add_filter('wpas_register_account_errors', '[MY_VALIDATION_FUNCTION]');`(
   _relatively_ simple because I am not all that adept at php in general, nor wordpress
   plugins in particular)
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/email-checking-on-registration-doesnt-validate/#post-9109843)
 * Aw, shoot. We completely missed this query. Looks like we might have missed a
   wordpress.org email when this was originally posted. Glad you got it sorted out
   though.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘email checking on registration doesn’t validate’ is closed to new replies.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/email-checking-on-registration-doesnt-validate/#post-9109843)
 * Status: resolved