Call to undefined function: mail()
My sendmail path is ok and replacing the php.ini didn't solve my problem...Jason Lee wrote:I replaced my php.ini file with php.ini.rpmsave and everything is working fine with 4.4.0. First I just replaced the the sendmail_path line with:
sendmail_path = /usr/sbin/sendmail -t -i
But then I was also having some mysql problems so I just replaced php.ini with php.ini.rpmsave
Having same problem that all. RH9 + Plesk 7.5.3
And installed packages:
And installed packages:
The problem still when replace php.ini by php.ini.rpmnew or php.ini.saved_by_psa[root@server tmp]# rpm -qa |grep php-
php-pgsql-4.4.0-3.rh90.art
php-imap-4.4.0-3.rh90.art
php-ldap-4.4.0-3.rh90.art
php-mbstring-4.4.0-3.rh90.art
php-pear-4.4.0-3.rh90.art
php-4.4.0-3.rh90.art
php-xslt-1.0-0
php-odbc-4.4.0-3.rh90.art
php-mysql-4.4.0-3.rh90.art
php-devel-4.4.0-3.rh90.art
I found this errors in /usr/local/psa/var/log/maillog
Maybe can help to find a solution... happend always I try use mail() function.Oct 6 09:55:25 server qmail-queue: dwlib[9375]: files: cannot open tmpfile /var/drweb/spool/drweb.tmp.epFuzj - (13) Permission denied
Oct 6 09:55:25 server qmail-queue: cannot create temporary file - (13) Permission denied
Oct 6 09:55:25 server qmail-queue: drweb-qmail[9375]: cannot read message from stdin
Well, finally I decide remove DrWeb:MrTeck wrote:I found this errors in /usr/local/psa/var/log/maillogMaybe can help to find a solution... happend always I try use mail() function.Oct 6 09:55:25 server qmail-queue: dwlib[9375]: files: cannot open tmpfile /var/drweb/spool/drweb.tmp.epFuzj - (13) Permission denied
Oct 6 09:55:25 server qmail-queue: cannot create temporary file - (13) Permission denied
Oct 6 09:55:25 server qmail-queue: drweb-qmail[9375]: cannot read message from stdin
yum remove drweb
Finally mail() function start work like a charm!