How can I send an email via Yahoo!\'s SMTP servers in PHP?
Read this http://php.net/manual/en/function.mail.php