开发者

PHP5 email is not receiving when I use canonical email address?

Hi I have to send emails when a client is register on my web site. When ever I register using a gmail I got registration successfull email from my site. But when I use a canonical email like learner@learner.com or nibo@cukabula.com I dont get any mails. I checked my spam folder there also it is not comming. why this happening. I am using php5 email function for sending 开发者_运维技巧mails.

This is my email header

$headers2  = 'MIME-Version: 1.0' . "\r\n";
$headers2 .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers2 .= 'From: Client Order <info@nibogrp.com>';

Function I used

mail($Email,$order_subject2,$messageBody,$headers2);

Please help me.


I think this is a question falling a bit outside the PHP scope. Email acceptation rules are highly provider dependent, but here are a few common hints:

  • use an email address in the From clause: From: <email@domain.com>
  • set an envelope sender address using the -f parameter in mail()'s additional_parameters
  • ensure you set up a SPF record for the domain of your sender email
  • check if your server's IP address is listed in any DNSBL, and follow the steps suggested for removal if it is listed in any of them.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜