天天看點

MantisBT 郵件配置

1、修改配置檔案

我的檔案路徑:C:\xampp\htdocs\mantis\config_defaults_inc.php

 修改config_defaults_inc.php中設定“Mantis Email Settings”的相關資訊,包括下列内容:

(1) 将$g_administrator_email、$g_webmaster_email、$g_from_email、$g_return_path_email等設為有效的郵件位址;

(2) 将$g_phpMailer_method值設為2,表示以smtp方式發送郵件;

(3)将$g_smtp_hosty設定為有效的郵件伺服器主機名,如’smtp.exmail.qq.com’;

(4)為$g_smtp_username 和$g_smtp_passwordy設定一個登入郵件伺服器的有效使用者賬号和密碼。

# //Mantis Email Settings

$g_administrator_email='[email protected]';

$g_webmaster_email='[email protected]';

$g_from_email='[email protected]';

$g_return_path_email= '[email protected]';



$g_use_phpMailer = ON;                   # 使用 PHPMailer 發送郵件


$g_phpMailer_method=2;                   # PHPMailer 以 SMTP 方式發送 Email


$g_smtp_host='smtp.exmail.qq.com';       # SMTP 伺服器


$g_smtp_username = '[email protected]'; # 郵箱登入使用者名

$g_smtp_password='**********';                 # 郵箱登入密碼
           

備注:以上代碼測試成功。