php - How can I use mail() with redhat, I can't send mail -


i experiencing problem since week.... installed redhat web server 6 , upload file. work nor form. when want send form, got error message :

object(socketexception) {     [protected] _attributes => array()     [protected] _messagetemplate => ''     [protected] _responseheaders => null     [protected] message => 'could not send email.'     [protected] code => (int) 500     [protected] file => '/var/www/step/lib/cake/network/email/mailtransport.php'     [protected] line => (int) 76 } 

the form use mail() function of php.

i have no idea, should configure on redhat web server let him send e-mail.

the ports smtp, www, ssh open

i install postfix did not solve problem.

someone know can do? should installed , how configure it?

many thank in order use function mail()

"fatal: chdir /var/spool/postfix: permission denied" can solved with:

setsebool -p httpd_can_network_connect 1

see: http://chirale.wordpress.com/2013/04/24/apache-centos-6-cannot-send-email/


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -