Mantis 企业邮箱配置
随着项目内容越来越零散,东西越来越复杂,有必要启用项目管理工具了,今天花了点时间把mantis装上了,其中遇到几个问题,记录下来。
环境:wampServer
邮件:Google企业邮箱
安装过程很简单,直接将下载下来的mantis文件解压到www目录下面,然后访问下,安装即可。
今天碰到的问题是使用Google企业邮箱时出现的一个错误
- SYSTEM WARNING: 'stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto' in 'D:\wamp\www\mantisbt\library\phpmailer\class.smtp.php' line 197
上网查了一下说是openssl的问题,想了想,应该是php的openssl扩展没有启用的原因,于是在桌面的右下角点击wampserver,启用该功能,如图:
这样用户注册的时候就可以收到Google企业邮箱发送的确认信息了。
顺便说下Google企业邮箱的在mantis中的配置
拷贝config_defaults_inc.php中的内容到config_inc.php中,并做以下修改:
- /**
- * Administrator Email address
- * @global string $g_administrator_email
- */
- $g_administrator_email = 'xxx@xxx.com';
- /**
- * Webmaster email
- * @global string $g_webmaster_email
- */
- $g_webmaster_email = 'xxx@xxx.com';
- /**
- * the sender email, part of 'From: ' header in emails
- * @global string $g_from_email
- */
- $g_from_email = 'xxx@xxx.com';
- /**
- * the sender name, part of 'From: ' header in emails
- * @global string $g_from_name
- */
- $g_from_name = 'Mantis Bug Tracker';
- /**
- * the return address for bounced mail
- * @global string $g_return_path_email
- */
- $g_return_path_email = 'xxx@xxx.com';
- /**
- * Allow email notification.
- * Set to ON to enable email notifications, OFF to disable them. Note that
- * disabling email notifications has no effect on emails generated as part
- * of the user signup process. When set to OFF, the password reset feature
- * is disabled. Additionally, notifications of administrators updating
- * accounts are not sent to users.
- * @global int $g_enable_email_notification
- */
- $g_enable_email_notification = ON;
- /**
- * select the method to mail by:
- * PHPMAILER_METHOD_MAIL - mail()
- * PHPMAILER_METHOD_SENDMAIL - sendmail
- * PHPMAILER_METHOD_SMTP - SMTP
- * @global int $g_phpMailer_method
- */
- $g_phpMailer_method = 2;
- /**
- * This option allows you to use a remote SMTP host. Must use the phpMailer script
- * One or more hosts, separated by a semicolon, can be listed.
- * You can also specify a different port for each host by using this
- * format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
- * Hosts will be tried in order.
- * @global string $g_smtp_host
- */
- $g_smtp_host = 'smtp.gmail.com';
- /**
- * These options allow you to use SMTP Authentication when you use a remote
- * SMTP host with phpMailer. If smtp_username is not '' then the username
- * and password will be used when logging in to the SMTP server.
- * @global string $g_smtp_username
- */
- $g_smtp_username = 'xxx@xxx.com';
- /**
- * SMTP Server Authentication password
- * @global string $g_smtp_password
- */
- $g_smtp_password = 'xxxxxx';
- /**
- * This control the connection mode to SMTP server. Can be 'ssl' or 'tls'
- * @global string $g_smtp_connection_mode
- */
- $g_smtp_connection_mode = 'tls';
- /**
- * The smtp port to use. The typical SMTP ports are 25 and 587. The port to use
- * will depend on the SMTP server configuration and hence others may be used.
- * @global int $g_smtp_port
- */
- $g_smtp_port = 587;
至此,我们的mantis邮件提醒功能可以正常使用了
转载于:https://blog.51cto.com/zilla/988813