[Plugin: Contact Form 7] Deny mails from @mydomain.com
-
hi,how can i deny users from send email from @mydomain.com
i want error message appear,like: you can not send email from this kind of domain or something
i found something on simplemachines forum,not sure,can i use this somehow on contact form7?
thank you
here is code i found and describes what i want to do…
if (preg_match(‘~@(hotmail\.com|aol\.com|yahoo\.com|gmail\.com|engineer\.com|mail\.com|otherwebmailsite\.org)$~’, $_POST[’email’]))
fatal_error(‘Sorry, but you cannot register here with a webmail/free email account. Please choose a different email address, and remember that you can choose to keep your email hidden.’, false);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Contact Form 7] Deny mails from @mydomain.com’ is closed to new replies.