2017-01-10 42 views
0

我已安裝螳螂和創建用戶,但我的電子郵件通知不起作用。你能幫我解決嗎?我配置我的config_inc.php文件如下。電子郵件通知不適用於螳螂錯誤跟蹤器

<?php 
$g_hostname    = 'localhost'; 
$g_db_type    = 'mysqli'; 
$g_database_name   = 'bugtracker'; 
$g_db_username   = 'root'; 
$g_db_password   = 'root'; 

$g_default_timezone  = 'Asia/Kolkata'; 

$g_crypto_master_salt  = 'HzYStp237n3sn+wmkWpQIM70+YyaiA4Y0c+jlapqZBE='; 

# --- Anonymous Access/Signup --- 
$g_allow_signup    = ON; 
$g_allow_anonymous_login = OFF; 
$g_anonymous_account  = ''; 

# --- Email Configuration --- 
$g_phpMailer_method  = PHPMAILER_METHOD_MAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL 
$g_smtp_host   = 'reseller8.hrwebservices.net';   # used with PHPMAILER_METHOD_SMTP 
$g_smtp_username  = '[email protected]';     # used with PHPMAILER_METHOD_SMTP 
$g_smtp_password  = '[email protected]';     # used with PHPMAILER_METHOD_SMTP 
$g_smtp_port   = '465'; 
$g_webmaster_email  = '[email protected]'; 
$g_from_email   = '[email protected]'; # the "From: " field in emails 
$g_return_path_email = '[email protected]'; # the return   address for bounced mail 
# $g_from_name   = 'Mantis Bug Tracker'; 
# $g_email_receive_own = OFF; 
# $g_email_send_using_cronjob = OFF; 


can anyone suggest me , how I make it working ? 
+0

您是否嘗試過使用PHPMAILER_METHOD_MAIL? 我也建議嘗試使用Gmail或某些公共提供者來確保問題出現在MantisBT配置中,而不是服務器配置。 –

+0

我嘗試使用Gmail,但具有相同的問題。我的配置是對還是錯? –

+0

我想我錯了,你有嘗試過使用PHPMAILER_METHOD_SMTP而不是PHPMAILER_METHOD_MAIL嗎?你的配置看起來不錯,但你似乎應該使用PHPMAILER_METHOD_SMTP。這應該能解決你的問題。 –

回答

1

步驟1

更新您的mantisBT config_inc.php文件按下面的詳細信息。

<?php 
$g_hostname    = 'localhost'; 
$g_db_type    = 'mysqli'; 
$g_database_name   = 'bugtracker'; 
$g_db_username   = 'root'; 
$g_db_password   = ''; 

$g_default_timezone  = 'Europe/Berlin';  
$g_crypto_master_salt  = 'k6icIz8yB2w5YRubgbiu1wFNp5YCl+SCnhPonQm5L7Q=';  
$g_allow_signup = ON; # allows the users to sign up for a new account  
$g_enable_email_notification = ON; # //enables the email messages  
$g_send_reset_password = ON;  
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;  
$g_smtp_host = 'smtp.gmail.com';  
$g_smtp_connection_mode = 'tls';  
$g_smtp_port = 587;  
$g_smtp_username = '[email protected]'; //replace it with your gmail address  
$g_smtp_password = '********'; //replace it with your gmail password  
$g_administrator_email = '[email protected]'; # //this will be your administrator email address  
$g_email_send_using_cronjob = OFF;  

第二步

按照以下步驟創建用戶。

Manage -> Manage Users -> Create New Account  
provide the details and click on Create User button 

步驟3

設置電子郵件通知。

Manage -> Manage Configuration -> Email Notification.  
Check(Select Check box) message types depending on access level -> Click on Update Configuration button.