AHMED SAMY
asked on
how can i test mail() on my server to know it is working
how can i test mail() on my server to know it is working
i have hosting godaddy.com i sent message from mail :
from my hosting done
another hosting failed
the same php 5.6
i have hosting godaddy.com i sent message from mail :
$to = "$co_email";
$subject = "*****";
$txt = "set your password by this link : http://********/setpassword.php";
$headers = "From: admin@*******.com.eg." . "\r\n" .
"CC: ************@yahoo.com";
mail($to,$subject,$txt,$headers);
from my hosting done
another hosting failed
the same php 5.6
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here's the thing though. Just because you can send email does not mean it will every be accepted or delivered.
Email sending + accepting (by external host) + delivery (on external host) are all three distinct operations.
If you've implemented all steps in my comments here https://www.experts-exchan
And you'll likely requires a few hours/day managing your return loop.
Or you can use a service like MailGun + you'll be setup in a few minutes with 100% deliverability + your code will work forever, independent of your runtime environment (hosting).