我使用一些代码将数据发送到其还发送确认电子邮件已输入到表单字段电子邮件似乎只被发送到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