Call to undefined function: mail()

Support/Development for PHP
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Call to undefined function: mail()

Unread post 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
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Unread post by Jason Lee »

downgrading to php-4.3.11-7 solved it for me.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Unread post 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
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Unread post by Jason Lee »

Anyone else experiancing this problem? I haven't been able to solve it yet. Its occuring on my test server aswell.
jstuart
New Forum User
New Forum User
Posts: 1
Joined: Tue Jun 28, 2005 6:39 pm

Unread post 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.
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Unread post by Jason Lee »

Any update on this?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

havent had a chance to look into it, but I'll probably resolve it on 4.4.0
marsupillami
Forum User
Forum User
Posts: 16
Joined: Sun Apr 24, 2005 8:21 am

Unread post 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.
Jamai
Forum User
Forum User
Posts: 20
Joined: Mon Feb 28, 2005 5:14 am

Unread post 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!
kilgore
Forum User
Forum User
Posts: 53
Joined: Sat Dec 04, 2004 4:37 am

Unread post by kilgore »

Same problem FC3 / PSA 7.5.4.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

on 4.4.0?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

on 4.4.0?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Yes, mail() is also not working with your current 4.4.0 release. I went back Fedora Core 3's php again. :(
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Unread post by Jason Lee »

same here. mail() isn't working on FC3 w/ php 4.4.0
Post Reply