Installation and setup send mail in centos

Step One : Install sendmail and sendmail cf:

yum install sendmail sendmail-cf

Check email on or off, to verify run:

getsebool -a | grep mail

If it displays as bellow:

allow_postfix_local_write_mail_spool --> off

Set it on run following command:

setsebool -P httpd_can_sendmail on

After, Restart, run command:

service sendmail restart
service httpd restart

Congratulation's! You have successfully installed Send mail.