$headers = '';
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "From: $fromName <$from>" . "\n";
$headers .= "Cc: " . "\n";
$headers .= "Bcc: $bcc" . "\n";
$headers .= "Reply-To: [email protected]" . "\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
$success = mail($to, $subject, $body, $headers, '-f [email protected]');
它,當我在Gmail ID發送郵件,但是當嘗試在現場發送郵件,雅虎ID,然後郵寄去的垃圾郵件工作的罰款。 可能是什麼原因?PHP的垃圾郵件爲Live ID的
http://stackoverflow.com/questions/18229279/sending-email-via- php-mail-function-to-spam 這個答案也可以幫助你。 – Jeroen
嘗試所有行中的回車符\ r –