944,180 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 12016
  • PHP RSS
Apr 20th, 2007
0

Trying to get the SMTP functionality for mediawiki to work.

Expand Post »
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:
PHP Syntax (Toggle Plain Text)
  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
PHP Syntax (Toggle Plain Text)
  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" 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" href="http://server1/wiki/index.php/Special:Confirmemail" target="_blank">http://server1/wiki/index.php/Special:Confirmemail</a>

Thanks, sj
Similar Threads
Reputation Points: 13
Solved Threads: 2
Junior Poster in Training
Sailor_Jerry is offline Offline
88 posts
since Aug 2005
Apr 21st, 2007
0

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

good work
Reputation Points: 10
Solved Threads: 1
Light Poster
whizz81 is offline Offline
26 posts
since Jul 2006
Apr 23rd, 2007
0

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

Click to Expand / Collapse  Quote originally posted by whizz81 ...
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");
Reputation Points: 13
Solved Threads: 2
Junior Poster in Training
Sailor_Jerry is offline Offline
88 posts
since Aug 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: anybody give me suggestion for my final year project??
Next Thread in PHP Forum Timeline: compressing mp3 for ringtones





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC