Trying to get the SMTP functionality for mediawiki to work.

Thread Solved

Join Date: Aug 2005
Posts: 75
Reputation: Sailor_Jerry is an unknown quantity at this point 
Solved Threads: 2
Sailor_Jerry's Avatar
Sailor_Jerry Sailor_Jerry is offline Offline
Junior Poster in Training

Trying to get the SMTP functionality for mediawiki to work.

 
0
  #1
Apr 20th, 2007
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:
  1. Could not send confirmation mail. Check address for invalid characters.
  2. Mailer returned: Unable to find class for driver smtp

Error from apache log file before files are moved from php dir
  1. [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 rel="nofollow" class="t" href="http://server1/wiki/index.php/Special:Confirmemail" target="_blank">http://server1/wiki/index.php/Special:Confirmemail</a>
  2. [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 rel="nofollow" class="t" href="http://server1/wiki/index.php/Special:Confirmemail" target="_blank">http://server1/wiki/index.php/Special:Confirmemail</a>

Thanks, sj
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 26
Reputation: whizz81 is an unknown quantity at this point 
Solved Threads: 1
whizz81 whizz81 is offline Offline
Light Poster

Re: Trying to get the SMTP functionality for mediawiki to work.

 
0
  #2
Apr 21st, 2007
good work
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 75
Reputation: Sailor_Jerry is an unknown quantity at this point 
Solved Threads: 2
Sailor_Jerry's Avatar
Sailor_Jerry Sailor_Jerry is offline Offline
Junior Poster in Training

Re: Trying to get the SMTP functionality for mediawiki to work.

 
0
  #3
Apr 23rd, 2007
Originally Posted by whizz81 View Post
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");
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC