mantis配置邮件服务-465端口

 mantis配置465端口发送邮件(针对阿里云,默认不开通25端口,必须走465)

# vim /data/htdocs/mantisbt/config/config_inc.php

 加入如下

$g_phpMailer_method = PHPMAILER_METHOD_SMTP - SMTP;
$g_return_path_email = '用户名@sina.com';
$g_smtp_host = 'smtp.sina.com';
$g_smtp_username = '用户名@sina.com';
$g_smtp_password = '密码 or 授权码';
$g_smtp_connection_mode = ssl;
$g_smtp_port = 465;


$g_enable_email_notificatio = ON;
$g_send_reset_password = ON;
$g_lost_password_feature = ON;

$g_from_email = '发送者邮箱,这个必填,否则不能发送邮件';
$g_from_name = 'Bug Tracker';

 

你可能感兴趣的:(我的运维笔记)