Hi, I have problem sending mail with PHP. on LAMP (redhat 7 server). I configured "sendmail" which I am able to send email using the following command:
$ sendmail
toemail@something.com <press enter>
message body <press enter>
ctrl+d (sends message)
and the message is received by any mentioned email address, successfully.
But when I use PHP scripts (working fine on other servers), PHP scripts are unable to send any email.
No error is there in /etc/mail/maillog.
and I have tried with different paths in php.ini in sendmail_path
e.g:
usr/sbin/sendmail -t -i
usr/sbin/sendmail -t
usr/sbin/sendmail
neither of the three does anything.
permission for /usr/sbin/sendmail is 666
Please suggest.