PHPMAIL don't send emails

I have CentOS6 and installed LAMP server.

The server won't send emails, althrough it says PHPMAIL is installed. I checked this using php script:

What's causing this? I have the same server on another hosting provider and it sends email normally. What settings to check?

1 Reply

Found it out!

Perhaps Linode CentOS image comes without (!) SENDMAIL installed, therefore PHPMAIL was not working.

I installed SENDMAIL with

yum install sendmail

and rebooted Linode. After that, PHPMAIL function started to work.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct