mantis郵件配置

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


建議把該內容拷到config_inc.php中.
#############################
# Mantis Email Settings
#############################
# --- email variables -------------
$g_administrator_email = '[email protected]';      #[email protected]是要修改爲相應的郵箱名稱。
$g_webmaster_email   = '[email protected]';       #[email protected]是要修改爲相應的郵箱名稱。
# the 'From: ' field in emails
$g_from_email    = '[email protected]';       #[email protected]是要修改爲相應的郵箱名稱。
# the return address for bounced mail
$g_return_path_email = '[email protected]';       #[email protected]是要修改爲相應的郵箱名稱。
# 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發送的。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章