Page 1 of 2

Call to undefined function: mail()

Posted: Mon Jun 06, 2005 1:41 pm
by Jason Lee
Since my last yum upgrade on my FC3 server I've been unable to send using mail()

I've got the following php packages installed:
php-mysql-4.3.11-8.rhfc3.art
php-pear-4.3.11-8.rhfc3.art
php-4.3.11-8.rhfc3.art
php-mbstring-4.3.11-8.rhfc3.art

Posted: Mon Jun 06, 2005 6:02 pm
by Jason Lee
downgrading to php-4.3.11-7 solved it for me.

Posted: Tue Jun 07, 2005 10:34 am
by scott
Could you write a basic php test script for that for me? That would help me out putting together automated tests for this kind of thing.

Posted: Tue Jun 07, 2005 8:43 pm
by Jason Lee
what I use is....

Code: Select all

<?php

error_reporting(E_STRICT);

function getmicrotime()
{
  list($usec, $sec) = explode(" ",microtime()); 
  return ((float)$usec + (float)$sec); 
} 

$script_start = getmicrotime();	

mail('<email address>','test','This is a test');

echo sprintf("%.4f",(getmicrotime() - $script_start));

?>
Just go through and replace <email address> with your email address

Posted: Tue Jun 21, 2005 9:12 pm
by Jason Lee
Anyone else experiancing this problem? I haven't been able to solve it yet. Its occuring on my test server aswell.

Posted: Tue Jun 28, 2005 6:40 pm
by jstuart
Yes, I too am having this problem. I'm on -8 also. NOTE: This seems to be a problem SPECIFIC to Fedora Core right now as I also have a RHEL box and it's working perfectly.

Posted: Tue Jul 19, 2005 1:24 am
by Jason Lee
Any update on this?

Posted: Tue Jul 19, 2005 7:55 am
by scott
havent had a chance to look into it, but I'll probably resolve it on 4.4.0

Posted: Wed Sep 14, 2005 10:04 am
by marsupillami
Just got the same problem, and solved it by installing 4.3.11-7. Also, it shown a dependency on libpdf.so.1. In case anyone has the same problem, just install PDFlib package.

Posted: Sun Sep 18, 2005 11:02 am
by Jamai
I am experiencing the same on Fedora Core 3 and Plesk 7.5.4 with the yum update from ART.

I sincerely hope that Scott has a fix for this when he comes back from his (well deserved) vacation!

Posted: Mon Sep 19, 2005 8:22 am
by kilgore
Same problem FC3 / PSA 7.5.4.

Posted: Tue Sep 20, 2005 7:58 am
by scott
on 4.4.0?

Posted: Tue Sep 20, 2005 8:09 am
by scott
on 4.4.0?

Posted: Thu Sep 22, 2005 6:13 am
by breun
Yes, mail() is also not working with your current 4.4.0 release. I went back Fedora Core 3's php again. :(

Posted: Thu Sep 22, 2005 9:29 am
by Jason Lee
same here. mail() isn't working on FC3 w/ php 4.4.0