Linode Forum
https://forum.linode.com/

PHPMAIL don't send emails
https://forum.linode.com/viewtopic.php?f=11&t=8830
Page 1 of 1

Author:  milstanyu [ Mon May 14, 2012 5:43 am ]
Post subject:  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:

Code:
<?php

if ( function_exists( 'mail' ) )
{
    echo 'mail() is available';
}
else
{
    echo 'mail() has been disabled';


?>


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

Author:  milstanyu [ Mon May 14, 2012 5:59 am ]
Post subject: 

Found it out!

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

I installed SENDMAIL with

Code:
yum install sendmail


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

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/