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发送的。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值