They are deprecated functions and they shouldn't be used since they are going to be removed in future versions.

Instead of eregi, use preg_match, replace code with:
PHP Code: 
{
        return 
preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i"$email);
    } 
Same goes for the split function too, instead of that use explode function, replace with:
PHP Code: 
 $toArr explode(','$to); 
soft2050 Reviewed by soft2050 on . Contact form in PHP website gives errors Hi guys, I've recently incorporated a contact form in a PHP website. Everything looks OK but when I click the Submit button I get the following errors: http://i1208.photobucket.com/albums/cc364/f4n3/contact-1.png fgcontactform.php on line 548 this is line 548 { return eregi("^+@(+\.)+{2,6}$", $email); }class.phpmailer.php on line Rating: 5