- 北境漫步
-
* 回复内容中包含的链接未经审核,可能存在风险,暂不予完整展示!六、Mantis 中邮件配置
如果不用邮件提醒通知这些功能,则在config_inc.php 中如下增加一行即可,这样的话新增的用户的密码都是空的。
$g_enable_email_notification = OFF; //不使用邮件
使用邮件功能的话,请看以下内容:
以下代码可以在 config_defaults_inc.php 中找到,建议把该内容拷到 config_inc.php 中再进行修改 。
下面以163邮箱为例进行详细的配置说明:
/**
* the return address for bounced mail
* @global string $g_return_path_email
*/
$g_return_path_email = "yourmail@1*.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 = PHPMAILER_METHOD_MAIL;
/**
* 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.e*****.com:25;smtp2.e*****.com").
* Hosts will be tried in order.
* @global string $g_smtp_host
*/
$g_smtp_host = "smtp.1*.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 = "yourmail"; // 这里填写你的邮箱的用户名
/**
* SMTP Server Authentication password
* @global string $g_smtp_password
*/
$g_smtp_password = "yourpassword"; // 这里填写你的邮箱的密码
注意 :为了避免邮件中的URL中出现 localhost ,请使用IP地址或域名登录mantis(如:http://192.168.56.102/mantisbt),而不要用 http://localhost/mantisbt。
- 我不懂运营
-
* 回复内容中包含的链接未经审核,可能存在风险,暂不予完整展示!使用邮件功能的话,请看以下内容:
以下代码可以在 config_defaults_inc.php 中找到,建议把该内容拷到 config_inc.php 中再进行修改 。
下面以163邮箱为例进行详细的配置说明:
/**
* the return address for bounced mail
* @global string $g_return_path_email
*/
$g_return_path_email = "yourmail@1*.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 = PHPMAILER_METHOD_MAIL;
/**
* 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.e*****.com:25;smtp2.e*****.com").
* Hosts will be tried in order.
* @global string $g_smtp_host
*/
$g_smtp_host = "smtp.1*.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 = "yourmail"; // 这里填写你的邮箱的用户名
/**
* SMTP Server Authentication password
* @global string $g_smtp_password
*/
$g_smtp_password = "yourpassword"; // 这里填写你的邮箱的密码
注意 :为了避免邮件中的URL中出现 localhost ,请使用IP地址或域名登录mantis(如:http://192.168.56.102/mantisbt),而不要用 http://localhost/mantisbt。
- 马老四
-
顶贴,扩散