mantis能否向外网发送邮件
我们公司的mantis一直是可以给企业内部邮箱发送邮件的,我现在想改成不仅可以向企业内部邮箱发送邮件,还可以向外网邮箱发送邮件的,该如何更改?config_inc.php配置如下:
# --- database variables ---------
# set these values to match your setup
$g_hostname = "localhost";
$g_db_username = "root";
$g_db_password = "密码";
$g_database_name = "mantis";
$g_db_type = "mysql";
$g_path = "http://10.90.10.140/bugtrack/";
$g_icon_path = $g_path."images/";
$g_absolute_path = "/var/www/mantis/";
$g_use_iis = OFF;
$g_show_version = ON;
# --- email variables -------------
$g_administrator_email= '我的内网邮箱地址';
$g_webmaster_email = '我的内网邮箱地址';
$g_phpMailer_method = 2;
$g_smtp_host = '10.90.0.7'; ——邮件服务器,我们收发邮件就是这个服务器
$g_smtp_username = 'BugTrackSys';
# the "From: " field in emails
$g_from_email = 'noreply@×××××.com';
# the return address for bounced mail
$g_return_path_email = 'admin@example.com'; 向内网邮箱发送邮件是正常 我已经测试过了,Mantis可以向外网发送邮件的,我自己给mantis配置的邮箱就是公司的邮箱,smtp服务器的配置最后加上25号端口(如:smtp.company.com:25),并且你的那台服务器要连接到外网就可以了。:) $g_smtp_host = '10.90.0.7:25';
是这样么? PROBLEMS SENDING MAIL TO: ****@sina.com
Mailer Error: SMTP Error: The following recipients failed: ****@sina.com
:Q 还是不行,还是报这个错误 谁知道具体如何解决?
页:
[1]