我使用一些代碼將數據發送到其還發送確認電子郵件已輸入到表單字段電子郵件似乎只被發送到Gmail的
一些奇怪的原因的電子郵件地址數據庫,它似乎只發送給我的Gmail帳戶,並沒有別的如Hotmail Tiscali公司雅虎
這裏是我用來發送電子郵件
// this send the receiver an email with the link to their ecard
mail("$receiveremail","Somebody loves you !", "<img src=\"http://www.somebodylovesyou.co.uk/images/email-header.jpg\" width=\"300\" height=\"57\">
</p>
<p>Hello $name,</p>
<p>Someone you know has sent you a secret valentine's message from http://www.somebodylovesyou.co.uk </p>
<p>You can view your message here : <a href='http://www.somebodylovesyou.co.uk/viewcard.php?rand=$eid'>http://www.somebodylovesyou.co.uk/viewcard.php?rand=$eid</a></P>
<P>Why not send a special someone a secret valentine's message at http://www.somebodylovesyou.co.uk</p>
<P>Happy Valentines", $headers);
// this send the receiver an email with the link to their ecard
mail("$youremail","View the message you've just sent", "<img src=\"http://www.somebodylovesyou.co.uk/images/email-header.jpg\" width=\"300\" height=\"57\">
</p>
<p>Hello,</p>
<p>Thanks for using Somebody Loves You </p>
<p>You can view the message you sent here : <a href='http://www.somebodylovesyou.co.uk/viewcard.php?rand=$eid'>http://www.somebodylovesyou.co.uk/viewcard.php?rand=$eid</a></P>
<P>Happy Valentine's", $headers);?>
有人建議我用這些頭以及幫助發送代碼電子郵件,但它似乎並沒有工作
// these headers are for the purpose of sending the email replay to hotmail and yahoo addresses
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: SOMEBODY LOVES YOU <[email protected]>\r\n";
$headers .= "Reply-To: <[email protected]>\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
$headers .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409\r\n";
$headers .= "X-Mailer: Microsoft Outlook Express 6.00.2800.1409";
你應該看看[SwiftMailer](http://swiftmailer.org/)或[Pear](http://pear.php.net/package/Mail/redirected)。嘗試一下,看看它是否適合你。 – 2013-02-08 20:22:34
你用簡單的電子郵件正文試過了嗎? (沒有html,少了文字) – 2013-02-08 20:30:51
嘗試像'mailmetrash.com'或'10minutemail.com'這樣的一次性服務,看看它是否到達那裏。如果確實如此,但仍然不是雅虎/ Hotmail,請確認它沒有以垃圾郵件結尾。如果您使用共享主機,很可能大多數電子郵件提供商會將其標記爲垃圾郵件。 – 2013-02-08 20:31:16