I installed a fresh mediawiki-1.28.2 on an Online.net personnal offer hosting (PHP 5.6 + MySQL) which provides quite basic access (FTP for files and phpMyAdmin for database). I had no issue in particular, thanks for the great work!
I configured MediaWiki as a private wiki with user passwords sent by mail. But when I create new user, no mail are sent, while it still looks like a success on the administration interface.
So I configured a log file ($wgDebugLogFile) and it showed that the mail() function returns false, it is just not displayed in the user interface. I then checked with a minimal PHP code that sending a mail works on my server. It works. Then I added some code to 'UserMailer.php' to get more info about the parameters passed by MediaWiki to the mail() function.
Nothing was wrong actually but, it seems that my hosting platform does not support a recipient different from:
And in the case of MediaWiki, the recipient is like this:
Indeed, when I try my minimal PHP code with such a recipient, the mail() function returns false and no mail is sent.
Question: is there an option in the configuration to force MediaWiki to only use the "basic form" of the recipient instead of the "full form"?
I would prefer not to have to patch the code myself so I hope I missed something... any idea?
Thank you for you help!
PS: If you think about suggesting me to switch to PEAR, I read about it, but I would prefer not to use it, and I'm not event sure it is available on my server.