php - My server cannot send email even though the mail function is returning true -


this question has answer here:

i trying send email server. using php's mail function. function returning true. not receiving email. have checked logs. , logs not showing error. domain "islamerkotha.com". code given below -

<?php      $msg = "first line of text\nsecond line of text";     $msg = wordwrap($msg,70);     $headers = "from: test1@islamerkotha.com";     mail("erfan.bashar.13@gmail.com", "my subject", $msg, $headers); 

thank you.

there many points along path email message takes yours failing, take @ php mail() function page; says function returns true if message accepted delivery , "it important note because mail accepted delivery, not mean mail reach intended destination."

edit: here more information on php error reporting. if don't see errors then, @ phpinfo() see if mail() function enabled. if is, it's time start looking further downstream...


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -