Cannot send mail; mail() undefined Cannot send mail; mail() undefined
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Cannot send mail; mail() undefined

Started by ethidium, July 30, 2004, 05:32:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ethidium

I've just gotten coppermine running for the first time and trying to register myself as a user.  When I enter the info and click "I agree" in the terms and conditions screen, I get the error message:

Fatal error: Call to undefined function: mail() in /var/www/html/cpg1.3.1/include/mailer.inc.php on line 42

I'm sure this is just a php module that I don't have installed, but I don't know which one to go fetch.

Update: after a quick dose of STFW, I find that mail() is a php intrinsic? That's how it appears, anyway, which makes things weirder.

BUT I have rendered the question moot by defining smtp_host in mailer.inc.php so that it uses smtp_mail() instead of mail.

None the less, this seems like something that should be documented in the installation instructions, and I'm still curious why mail() failed. 

Joachim Müller

if you don't have sendmail (probably because you're on a windows server), you'll have to specify SMTP. Edit include/mailer.inc.php. See http://coppermine.sourceforge.net/manual.php#smtp

GauGau