Попробуй это:
<?php ini_set("SMTP","aspmx.l.google.com"); $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= "From: myemail@yahoo.com" . "\r\n"; mail("msome@gmail.com","test subject","test body",$headers); ?>