None of store's transactional emails are sending (order confirmation, newsletter signup confirmation, account password reset etc).
All settings in backend of magento are good (like "Disable email communication"), all store emails are set.
Cron seems to be working. Here is the rules I got:
* * * * * /usr/local/bin/php /home/uspatriot/public_html/bin/magento setup:cron:run >> /home/uspatriot/public_html/var/log/setup.cron.log * * * * * /usr/local/bin/php /home/uspatriot/public_html/update/cron.php >> /home/uspatriot/public_html/var/log/update.cron.log * * * * * /usr/local/bin/php /home/uspatriot/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/uspatriot/public_html/var/log/magento.cron.log
I tried to use php mail function from ssh to see if that's the problem, like this:
mail -s testingmail email@example.com testing message
Nothing happens there.
Tried to do
mail -v firstname.lastname@example.org -- -r "email@example.com"
It returns error that gmail thinks it's spam and therefore blocked the email.
Tried to create php file with simple php mail() function in it, and then run with
It returns that email has been sent, yet nothing is actually happening.
I'm pooped. HELP! :)
There are bunch of errors like this in update.log:
[2017-04-21 03:31:02] update-cron.ERROR: Cron readiness check failure! Found non-writable paths: /home/uspatriot/public_html/php.ini.sample  
i don't know if that is the problem. Tried to google - not much info on it.
Got this from server support folks:
*It appears the PHP Mail function is enabled and working properly on the server at this time. I did a quick check for the function to insure it was enabled and then sent a test message manually via command line to my gmail account. I received this within the exim_maillog after that test: This log shows the sending of the message through the PHP Mailer to my test gmail account:
2017-04-20 23:08:18 cwd=/root 4 args: send-mail -i -- firstname.lastname@example.org 2017-04-20 23:08:18 1d1Ovi-000NzU-4X <= email@example.com U=root P=local S=556 T="Iron Maiden" for firstname.lastname@example.org 2017-04-20 23:08:18 1d1Ovi-000NzU-4X ** email@example.com R=lookuphost T=remote_smtp H=gmail-smtp-in.l.google.com [126.96.36.199] X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=yes:
However gmail did deny the message at their SMTP server due to the message being sent from root and gmail believes it to be a spam message. SMTP error from remote mail server after end of data:
550-5.7.1 [188.8.131.52] The IP address sending this message does not have a\n550-5.7.1 PTR record setup. As a policy, Gmail does not accept messages from\n550-5.7.1 IPs with missing PTR records. Please visit\n550-5.7.1 https://support.google.com/mail/answer/81126#authentication for more\n550 5.7.1 information. l130si775055ita.29 - gsmtp
In conclusion to the original inquiry, all of this indicates that the PHP Mail function is active and working on the server. If you could give us some steps in order to replicate the issue you are encountering we will be able to better investigate. *