硅磷晶处理的水能喝吗:mantis邮箱配置

来源:百度文库 编辑:中财网 时间:2024/04/30 13:19:17
以下内容可以在c:\apache2.2\mantis\config_defaults_inc.php(自己mantis的安装目录)中找到。
建议把该内容拷到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';       #邮箱的密码
记住以上内容是放在里面的注意:所有的   #xxxx@xxx.com全部替换成想要设置的邮箱。例如:zheng20100816@126.com,别忘记用单分号扩住'zheng20100816@126.com'$g_smtp_host    = 'mail.xxx.com:25'这里设置成$g_smtp_host    = 'smtp.126.com:25'。如果邮箱是163或者gmail等其他邮箱,把126替换成相应的名称即可。

再注意:还需要配置一个地方,在C:\apache2.2\conf目录下在找到httpd.conf,打开后查找listen,#Listen 12.34.56.78:80替换为#Listen IP    IP就是电脑的地址把Listen 80修改为listen IP:80,IP就是电脑的地址还有修改c:\php\php.ini,把SMTP = localhost修改为SMTP = IP,IP为你电脑IP
这样修改的好处是邮件发送的时候是直接以IP地址发送链接的,而不是以localhost发送的。