954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Trying to get the SMTP functionality for mediawiki to work.

I have apache in this dir C:\Program Files\Apache Software Foundation\Apache2.2\
and
Mail.php and PEAR.php are in this dir C:\php\PEAR\pear
When I add the files to the dir the log file is complaining about below, the wiki spits out the following:

Could not send confirmation mail.  Check address for invalid characters.
Mailer returned: Unable to find class for driver smtp


Error from apache log file before files are moved from php dir

[Fri Apr 20 17:21:17 2007] [error] [client 0.0.0.0] PHP Warning:  require_once(Mail.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\wiki\\includes\\UserMailer.php on line 87, referer:  <a href="http://server1/wiki/index.php/Special:Confirmemail">http://server1/wiki/index.php/Special:Confirmemail</a> 
[Fri Apr 20 17:21:17 2007] [error] [client 0.0.0.0] PHP Fatal error:  require_once() [<a href=' function.require'>function.require</a>]: Failed opening required 'Mail.php' (include_path='C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\wiki;C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\wiki/includes;C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\wiki/languages;C:/PHP/PEAR;.;C:\\php5\\pear') in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\wiki\\includes\\UserMailer.php on line 87, referer:  <a href="http://server1/wiki/index.php/Special:Confirmemail">http://server1/wiki/index.php/Special:Confirmemail</a>


Thanks, sj

Sailor_Jerry
Junior Poster in Training
88 posts since Aug 2005
Reputation Points: 13
Solved Threads: 2
 

good work

whizz81
Light Poster
26 posts since Jul 2006
Reputation Points: 10
Solved Threads: 1
 
good work

Thanks whizz..

Finally got this working. The issues had nothing to do with UserMailer.php.

I Needed to make some changes in LocalSettings.php in my wiki dir. Mainly adding the path to pear in the line below:
$path = array( $IP, "$IP/includes", "$IP/languages", "C:\PHP\PEAR\pear");

Sailor_Jerry
Junior Poster in Training
88 posts since Aug 2005
Reputation Points: 13
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You