分享

【转】Mantis安装记录:邮件配置

 xihayouyi 2016-06-06

Mantis的Email配置主要修改config_defaults_inc.php以下部分:
$g_administrator_email = ‘administrator@example.com’;   //配置:如:123@123.com
$g_webmaster_email = ‘webmaster@example.com’;   //配置:如:123@123.com
$g_from_email = ‘noreply@example.com’;   //配置:如:123@123.com
$g_from_name = ‘Mantis Bug Tracker’;

$g_return_path_email = ‘admin@example.com’;   //配置:如:123@123.com
$g_enable_email_notification = ON;

$g_default_notify_flags = array(‘reporter’ => ON, ‘handler’ => ON, ‘monitor’ => ON, ‘bugnotes’ => ON, ‘explicit’ => ON, ‘threshold_min’ => NOBODY, ‘threshold_max’ => NOBODY); $g_notify_flags['new'] = array(‘bugnotes’ => OFF, ‘monitor’ => OFF);

$g_notify_flags['monitor'] = array( ‘reporter’ => OFF, ‘handler’ => OFF, ‘monitor’ => OFF, ‘bugnotes’ => OFF, ‘explicit’ => ON, ‘threshold_min’ => NOBODY, ‘threshold_max’ => NOBODY); $g_email_receive_own = OFF; $g_validate_email = ON;

$g_check_mx_record = OFF; $g_allow_blank_email = OFF; $g_limit_email_domain = OFF; $g_show_user_email_threshold = NOBODY; $g_show_user_realname_threshold = NOBODY; $g_mail_priority = 3; $g_phpMailer_method = PHPMAILER_METHOD_SMTP  //配置:SMTP方式

$g_smtp_host = ‘localhost’;   //配置:SMTP服务器地址,如:smtp.qq.com
$g_smtp_username = ”;   //配置:SMTP登录用户名,如:123456
$g_smtp_password = ”;   //配置:SMTP登录密码,如:123456
$g_smtp_connection_mode = ”;   //配置:如果没有默认可为空,如果有按需要填写,如ssl,tls。
$g_smtp_port = 25;   //配置:SMTP服务器端口号,一般保持默认。
$g_email_send_using_cronjob = OFF; $g_email_set_category = OFF; $g_email_separator1 = str_pad(”, 70, ‘=’); $g_email_separator2 = str_pad(”, 70, ‘-’); $g_email_padding_length = 28;

另外,若希望邮件发送的时候是直接以IP地址发送链接的,而不是以localhost发送的。那么还需要配置C:\xampp\apache\conf目录下在找到httpd.conf,打开后搜索到listen,把Listen 80修改为listen IP:80,IP就是你服务器的地址。还有修改php.ini,把SMTP = localhost修改为SMTP = IP,IP为你服务器IP。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多