@limker said:
Looks like your plugin will reject any user with a non-gmail account. Maybe you should check with a list of valid email domains, i'm sure you can find one easily on google.
Actually I think this is a bad idea. Because anyone can run their own mailserver.
Just check if the email contains an @ is enough for valid email testing. Most regex solutions will fail on stuff like:
"this email contains spaces"@example.org which is a valid email address. An email address may even contain a @ character in the local part in some odd configurations.