Azure的网站和放大器;链接到MediaWiki:如何启用电子邮件发送 [英] Azure websites & MediaWiki: how to enable emails sending
问题描述
例如,当用户创建一个帐户,密码重置等。
for example, when user creates an account, resets password etc.
第一步是设置邮件服务器凭据的LocalSettings.php文件,按照本文件:的 http://www.mediawiki.org/wiki/Manual_talk:$wgSMTP#Example_using_Google_Mail
First step is to set mail server credentials in LocalSettings.php file, as per this document: http://www.mediawiki.org/wiki/Manual_talk:$wgSMTP#Example_using_Google_Mail
但你这样做后,你会得到未安装PEAR邮件包的错误消息。如何解决此问题?
But after you do this, you will get "PEAR mail package is not installed" error message. How to solve this?
推荐答案
原来这是比较简单的:
- 确保您的邮件服务器凭据正确
- FTP到根文件夹重命名的index.php到index.php.old - 否则它就会重写
- 安装PEAR经理,用托管网站一>工作流程
- 重命名pear.conf到pear.ini - 否则你将无法启动Web管理器
- 在你的根文件夹中创建.user.ini文件,并添加你的物理路径梨成*的include_path *变量 - 的KudoZ这篇文章:的 http://chrisrisner.com/Using-PEAR-with-Windows-Azure-Websites-and-PHP
-
打开Web管理器( http://domain.name/index.php )和安装以下软件包PEAR(不知道他们有些是多余的,但之后我安装了他们,我是能够连接到Gmail服务器)
- Make sure your mail server credentials are correct
- FTP to root folder and rename index.php into index.php.old - otherwise it gets overridden
- Install PEAR manager, using "Hosted website" workflow
- Rename pear.conf into pear.ini - otherwise you won't be able to start web manager
- Create .user.ini file in your root folder and add your physical path to pear into *include_path* variable - kudoz to this article: http://chrisrisner.com/Using-PEAR-with-Windows-Azure-Websites-and-PHP
Open web manager (http://domain.name/index.php) and install the following packages in PEAR (not sure if some of them are redundant but after I installed them, i was able to connect to GMAIL server)
- Auth_SASL
- 邮件
- Mail_Mime
- Net_SMTP
重命名的index.php到index.php.pear,去-pear.php成细末pear.php.pear和index.php.old回重命名的index.php
Rename index.php into index.php.pear, and go-pear.php into go-pear.php.pear, and rename index.php.old back to index.php
尝试注册 - 你应该得到一个电子邮件
Try to register - you should get an email
这篇关于Azure的网站和放大器;链接到MediaWiki:如何启用电子邮件发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!