<?php
$to = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
$send = mail($to, $subject, $message, $headers);
if ($send)
$mailReturns = "Mail sent successfully.";
else
$mailReturns = "Mail sent failed.";
?>
<?php echo $mailReturns; ?>
運行後顯示郵件已成功發送 但郵件未顯示在任何帳戶中。四嘗試Gmail,雅虎,rediff和ibibo爲什麼?郵件未顯示
它沒有顯示在垃圾郵件或垃圾郵件文件夾中。 – Tiya 2010-08-17 10:05:01