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:

  1. make sure mail server credentials correct
  2. ftp root folder , rename index.php index.php.old - otherwise gets overridden
  3. install pear manager, using "hosted website" workflow
  4. rename pear.conf pear.ini - otherwise won't able start web manager
  5. 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
  6. 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
    • mail_mime
    • net_smtp
  7. rename index.php index.php.pear, , go-pear.php go-pear.php.pear, , rename index.php.old index.php

  8. try register - should email


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -