2010-08-17 42 views
1
<?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爲什麼?郵件未顯示

回答

3

如果您的服務器上安裝了qmail,請嘗試使用它。另外,還有一個名爲swiftmail的PHP郵件類可以在這裏找到:http://swiftmailer.org/你可以試試。

您的電子郵件可能正在被垃圾/標記爲垃圾郵件。

+0

它沒有顯示在垃圾郵件或垃圾郵件文件夾中。 – Tiya 2010-08-17 10:05:01

1

嘗試在垃圾郵件文件夾中看到。

+0

nop! not der also .. – Tiya 2010-08-17 10:05:25