Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Cannot send mail; mail() undefined  (Read 4854 times)

0 Members and 1 Guest are viewing this topic.

ethidium

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Cannot send mail; mail() undefined
« on: July 30, 2004, 05:32:12 pm »

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. 
« Last Edit: July 30, 2004, 10:40:01 pm by ethidium »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cannot send mail; mail() undefined
« Reply #1 on: July 31, 2004, 07:54:39 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 17 queries.