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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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