Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MediaWiki not sending email

Posted on 2011-03-07
4
Medium Priority
?
843 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Simple Linear Regression
Introduction to Processes

610 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