Azure websites & MediaWiki: how to enable emails sending -
for example, when user creates account, resets password etc.
first step set mail server credentials in localsettings.php file, per document: http://www.mediawiki.org/wiki/manual_talk:$wgsmtp#example_using_google_mail
but after this, "pear mail package not installed" error message. how solve this?
turns out it's relatively simple:
- make sure mail server credentials correct
- ftp root folder , rename index.php index.php.old - otherwise gets overridden
- install pear manager, using "hosted website" workflow
- rename pear.conf pear.ini - otherwise won't able start web manager
- create .user.ini file in root folder , add physical path pear *include_path* variable - kudoz article: http://chrisrisner.com/using-pear-with-windows-azure-websites-and-php
open web manager (http://domain.name/index.php) , install following packages in pear (not sure if of them redundant after installed them, able connect gmail server)
- auth_sasl
- mail_mime
- net_smtp
rename index.php index.php.pear, , go-pear.php go-pear.php.pear, , rename index.php.old index.php
try register - should email
Comments
Post a Comment