Topic on Project:Support desk

Summary by AdamLacey

I re-opened this as I wanted to put informative information regarding this in which helped me solve it so this can be closed again now, which is how I found the topic.

Huwmanbeing (talkcontribs)

What is the best way to make a MediaWiki installation send an email for testing purposes?

I'm working to get SMTP configured properly but am not sure how to easily trigger the wiki to send a test message. Thanks for any suggestions!

This post was hidden by AhmadF.Cheema (history)
Seb35 (talkcontribs)

You can request a new password on the login page, it should send an email. Or when logged as user, you can also authenticate your email from the preferences.

Seb35 (talkcontribs)

If you have your own SMTP server: If you can it is better to monitor the SMTP server to check if it really send the emails during your initial setup. If you cannot, be careful about the spam filters in the receiving email address. If you don’t receive the email there are two possibilities: either it was not send by MediaWiki and/or your SMTP server, either the receiving address put it in the Spam folder or even discarded the email because your SMTP server don’t have a good (enough) reputation.

When it will work you should monitor your SMTP server to keep and ideally improve its reputation (be sure it don’t send spam, add mechanisms like SPF and/or DKIM, check and monitor major DNSBLs, fill forms in major email providers to certify your good practices, etc.). You don’t have to do all these actions, but the more you do the better your email quality and deliverability will be.

All this does not really apply if you send MediaWiki emails through an email provider (Gmail, Yahoo, Microsoft, etc.), although you should anyway monitor the emails are really sent, for instance once a month or once a year.

AdamLacey (talkcontribs)

Hi all,

This isn't wanting ananswer myself but I just wanted to share helpful information regarding this as I too was struggling and I was wondering this exact question.

@Seb35 suggestion of requesting a new password on the from the logon page can only be done once every 24 hours but during troubleshooting it is required to be done more regularly than that and I discovered a way of doing this which pointed me exactly to to look at my PHP.ini configuration that IIS was using as it mentioned where the issue was and I could test regularly.

You don't need the email to work to setup your own account as the administrator so with your own account that you created without the email notification,you can, navigate to:

http://YOURWIKIURL/index.php?title=Special:EmailUser/

or if you wanted to test emailing to your self you can do directly there with:

http://YOURWIKIURL/index.php?title=Special:EmailUser/YOURUESRNAME

On that page you can write a test message and send it as many times as you like, that was when my wiki informed me that it could not connect to LOCALHOST and to check my PHP.ini (not where I wanted it to connect to but I knew I installed that previous to get the site working and configured my IIS to use it, so it pointed me in the right direction)

This Thread can be closed again now but I wanted to get that information to people.

Kind regards

Adam Lacey