PHP mail() not sending emails Centos Cloud Server

centos5emailmagentoPHP

I am new to this. Have got a cloudserver running centos 5.4, Installed php, mysql and apache to run magento however emails are not going out.. Do I need to configure something more?

Best Answer

PHP mail function depends only on two things:

  • PHP config (search for mail keyword in php.ini)
  • Sendmail

Mail transport is a different question and if you don't have any errors after your PHP script sends the email, you could check:

  • mailq, if queue is not empty, possibly there is firewall issue
  • tail /var/log/mail, log checking :-)