Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 14, 2012 5:43 am 
Offline
Newbie

Joined: Mon May 14, 2012 5:27 am
Posts: 2
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?


Top
   
 Post subject:
PostPosted: Mon May 14, 2012 5:59 am 
Offline
Newbie

Joined: Mon May 14, 2012 5:27 am
Posts: 2
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group