Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

MediaWiki not sending email

Posted on 2011-03-07
4
Medium Priority
?
848 Views
Last Modified: 2013-11-13
Running 1.16.2 of Mediawiki and it isn't sending emails -- it gives a server 500 error. log says
[07-Mar-2011 16:07:29] PHP Warning:  require_once(Mail.php): failed to open stream: No such file or directory in D:\inetpub\Marketing\w\includes\UserMailer.php on line 119
[07-Mar-2011 16:07:29] PHP Fatal error:  require_once(): Failed opening required 'Mail.php' (include_path='D:\inetpub\Marketing\w;D:\inetpub\Marketing\w/includes;D:\inetpub\Marketing\w/languages;.;C:\php\pear') in D:\inetpub\Marketing\w\includes\UserMailer.php on line

i have pear installed but there isn't a mail.php file anywhere on the server. in reality i don't want to use pear, i want to use my own smtp server which i have setup in LocalSettings.php and php.ini via the ip address.
how do i get this to work?
thanks
Sandy
0
Comment
Question by:quigleyryan
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Kent W earned 2000 total points
ID: 35063074
Without a local SMTP server installed, you don't.  Welcome to PHP on Windows.
You can install IIS's SMTP server and use it as "localhost" in your config files, and that should work fine.

Those settings are for *nix based boxes, and without some local mail function, it just doesn't happen.
CDONTS and Blat or other options.
0
 

Author Comment

by:quigleyryan
ID: 35074127
i have the iis smtp server configured on the server.
i changed the php.ini from the mailserver ip to localhost
my LocalSettings.php has the ip address of my mail server

i could have sworn this worked on 1.15 but it sure doesn't on 1.16.2
do you have an example of the LocalSettings.php that works -- just need the SMTP stuff (I think)
0
 

Author Comment

by:quigleyryan
ID: 35074927
got it to work - had to run a few more pear commands.. don't ask me why i couldn't get it to use iis smtp - but you know... i hate freeware stuff...
thanks for your help -- i will give you the points, because you were nice enough to help
0
 
LVL 12

Expert Comment

by:Kent W
ID: 35075201
I just saw both of your replies, busy day!  I'm glad you got it working.  Glad I could point you in a generally right direction.  Thanks!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
Simple Linear Regression
Loops Section Overview

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question