Email not received - If PHP mail() returns true, was mail sent ?

I would like to ask, if PHP email() returns true, does it mean email was sent ? Beacuse I am not receiving it.
give a positive ratinggive a negative rating
16 Sep 2022 at 01:06 PM

If PHP mail() function returns TRUE, it means email was created and accepted for delivery, but not automatically sent to recipient.

These are the possible problems:

  • Sending of emails is not allowed or configured in php.ini
  • Sending of emails is limited, not allowed or not configured at the level of SMTP server
  • Email was successfully sent, but recipient's server recognizes it as a spam (because of IP address, email address or previous user actions)

give a positive ratinggive a negative rating
18 Sep 2022 at 06:46 PM
Share on FacebookShare on TwitterShare on LinkedInSend email
2024 AnswerTabsTermsContact us