a564941464 发表于 2013-1-28 09:17:54

mantis邮件配置

以下内容可以在config_defaults_inc.php中找到。


建议把该内容拷到config_inc.php中.
############################## Mantis Email Settings############################## --- email variables -------------$g_administrator_email = 'xxxx@xxx.com';      #xxxx@xxx.com是要修改为相应的邮箱名称。$g_webmaster_email   = 'xxxx@xxx.com';       #xxxx@xxx.com是要修改为相应的邮箱名称。# the 'From: ' field in emails$g_from_email    = 'xxxx@xxx.com';       #xxxx@xxx.com是要修改为相应的邮箱名称。# the return address for bounced mail$g_return_path_email = 'xxxx@xxx.com';       #xxxx@xxx.com是要修改为相应的邮箱名称。# allow email notification# note that if this is disabled, sign-up and password reset messages will# not be sent.$g_enable_email_notification = ON;# select the method to mail by:# 0 - mail()# 1 - sendmail# 2 - SMTP$g_phpMailer_method   = 2;      #以smtp发送邮件# This option allows you to use a remote SMTP host. Must use the phpMailer scrīpt# Name of smtp host, needed for phpMailer, taken from php.ini$g_smtp_host    = 'mail.xxx.com:25';      #邮件服务器的地址,后面加上端口号25# 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.$g_smtp_username = 'xxxxx';       #邮箱的用户名$g_smtp_password = 'xxxxx';       #邮箱的密码

邮件系统的配置建议用smtp方式。一般公司都有自己的邮件服务器,让管理员给你开一个mantis的专用信箱。
注意:还需要配置一个地方,在C:\xampp\apache\conf目录下在找到httpd.conf,打开后搜索到listen,把Listen 80修改为listen IP:80,IP就是你服务器的地址。还有修改php.ini,把SMTP = localhost修改为SMTP = IP,IP为你服务器IP
这样修改的好处是邮件发送的时候是直接以IP地址发送链接的,而不是以localhost发送的。
页: [1]
查看完整版本: mantis邮件配置