You would need to customise the validation function in the ‘contact-send.php’ file…
function ValidateEmail($email){
$regex = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$^";
$eregi = preg_replace($regex,'', trim($email));
return empty($eregi) ? true : false;
}
The validation string ($regex
) is a regular expression. I think something like this should do what you want…
function ValidateEmail($email){
$regex = "^[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,3})$^";
$eregi = preg_replace($regex,'', trim($email));
return empty($eregi) ? true : false;
}
Keep in mind that if you modify core theme files then each time you update the theme you will need to make all of those modifications again to the updated theme files.
References:
http://php.net/manual/en/book.pcre.php