First check /etc/php.ini
STEP 1: ;For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = /usr/sbin/sendmail -t -i
STEP 2: It should be like this
[mail function] ; For Win32 only. ;SMTP = localhost ;smtp_port = 25
; For Win32 only. sendmail_from = root@webserver
STEP 3: Check if SELinux is allowing SMTP connections
[root@webserver ~]# sestatus -b | grep sendmail httpd_can_sendmail off
If httpd_can_sendmail is set to off like above then do the following
setsebool httpd_can_sendmail=1
Then restart apache and sendmail
if you still get the following error in /var/log/maillog error: sendmail DSN: Service unavailable
Then I would suggest you use postfix
By PHPin24 @ 2009-10-29 22:34:56
|