2017-01-10 37 views
0

mantisをインストールしてユーザーを作成しましたが、電子メール通知が機能しません。あなたは私を助けてくれますか?私はconfig_inc.phpファイルを以下のように設定しました。mantisバグトラッカーで電子メール通知が機能しない

<?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_MAILの代わりにPHPMAILER_METHOD_SMTPを使ってみましたか?あなたの設定はOKですが、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;  

ステップ2

手順の下に、以下でユーザーを作成します。

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. 
関連する問題