Solved

MediaWiki not sending email

Posted on 2011-03-07
4
767 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 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now