If you are trying to send emails from a PHP script and you are not receiving those emails, check the following items:

  • Check the Spam or Junk folder of your email account. Some messages may be wrongly marked as spam.
  • Make sure you are setting a proper and valid email address in the From: header of the email message. Many email servers require and check a valid email address.
  • If you are setting additional headers, edit your script and remove all headers. Try with that, if it works, add a header at a time and try again until you find which header is preventing the email from being delivered.

We recommend that you use Zend_Mail to send emails. It is a great library to send text or HTML emails, including emails with attachments. Remember it is not necessary to use any other parts of the Zend Framework if you don’t want to (this is very common when using other frameworks like symfony or Cake PHP). Here you can find an example on how to use it.

Also, remember that ServerGrove includes the Zend Framework in the PHP include path, so you don’t have to upload it, it is already installed for you!