all mails send vai php mail() go to spam on gmail and yahoo

August 13, 2017 16.2k views
PHP Frameworks PHP Ubuntu 16.04

*Hello Every body
now I deployed I project on Ubunto 16.04 LEMP
when I use mail() in php any mails send to spam in gmail or yahoo
any configure I do to solve this problem thank’s *

1 Answer

This is usually because mail providers are told you’re not authenticated which is usually an spf record.
You can use to see why your emails might be treated as spam and you can work with that to finally resolve your problem.

Have another answer? Share your knowledge.