Houston, we have a problem.
The PHP mail() Function
mail(to,subject,message,headers,parameters)
Валидация email адреса
FILTER_SANITIZE_EMAIL filter removes all illegal e-mail characters from a string
FILTER_VALIDATE_EMAIL filter validates value as an e-mail address