こんにちは、mail()関数を知ったPHPを学んでいます。このコードを試しました
function sendMail()
{
    $to = 'Sohil Desai<sohildesaixxxx@gmail.com>';
    $from = 'Sohil Desai<sohildesaixxxx@hotmail.com>';
    $subject = 'Test Mail';
    $headers  = 'MIME-Version: 1.0'. "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= 'From: '.$from . "\r\n";
    $headers .= 'X-Mailer: PHP/'.phpversion();
    $message = 'This mail is sent for testing.';
    $mail = mail($to, $subject, $message, $headers);
    if (!$mail) {
        return 'Error occured sending mail.';
    }
    return 'Mail successfully sent.';
}
echo sendmail();
gmail、ymail、hotmail のみをテストしました。
この関数は、gmail と hotmail のスパムでメールを送信し、ymail にはメールを送信しません。
なぜそれが起こるのですか??
Ubuntu 12.04 と php バージョン 5.3.10 を使用しています。
誰でも私を助けることができますか?? 事前にhalpersに感謝..