Hello,
I am unable to send using mail() function. Please see the details.
========
Test mail php file.
]# cat testmail.php
<?
if (mail('[email protected]', 'PHP test', 'This is a test of mail().')) {
echo "Mail successful";
} else {
echo "Mail failed.";
};
?>
Browser output :Mail failed.
==========
Apache Error log:
sh: /usr/local/bin/sendmail-logger: No such file or directory
# ll /usr/local/bin/sendmail-logger
-rwxr-xr-x 1 root root 169 Jun 25 2013 /usr/local/bin/sendmail-logger*
# which sendmail
/usr/sbin/sendmail
#grep sendmail /usr/local/lib/php.ini
;sendmail_from = [email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "/usr/sbin/sendmail -t -i"
sendmail_path=/usr/sbin/sendmail -t ;
;sendmail_path = /usr/local/bin/sendmail-logger
===============
Kindly assist.
Thanks
Sreeni
I am unable to send using mail() function. Please see the details.
========
Test mail php file.
]# cat testmail.php
<?
if (mail('[email protected]', 'PHP test', 'This is a test of mail().')) {
echo "Mail successful";
} else {
echo "Mail failed.";
};
?>
Browser output :Mail failed.
==========
Apache Error log:
sh: /usr/local/bin/sendmail-logger: No such file or directory
# ll /usr/local/bin/sendmail-logger
-rwxr-xr-x 1 root root 169 Jun 25 2013 /usr/local/bin/sendmail-logger*
# which sendmail
/usr/sbin/sendmail
#grep sendmail /usr/local/lib/php.ini
;sendmail_from = [email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "/usr/sbin/sendmail -t -i"
sendmail_path=/usr/sbin/sendmail -t ;
;sendmail_path = /usr/local/bin/sendmail-logger
===============
Kindly assist.
Thanks
Sreeni