【问题标题】:email notification is not working in mantis bug tracker电子邮件通知在螳螂错误跟踪器中不起作用
【发布时间】:2017-01-10 06:26:27
【问题描述】:

我已安装 mantis 并创建了用户,但我的电子邮件通知不起作用。你能帮帮我吗?我如下配置了我的 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        = 'heena@confluencesolution.com';                   #   used with PHPMAILER_METHOD_SMTP
$g_smtp_password        = 'heena@123';                  # used with PHPMAILER_METHOD_SMTP
$g_smtp_port            = '465';
$g_webmaster_email      = 'heena@confluencesolution.com';
$g_from_email           = 'heena@confluencesolution.com';   # the "From: "   field in emails
$g_return_path_email    = 'heena@confluencesolution.com';   # 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 ?

【问题讨论】:

  • 您尝试过使用 PHPMAILER_METHOD_MAIL 吗?我还建议尝试使用 Gmail 或一些公共提供商,以确保问题出在 MantisBT 配置中,而不是服务器配置中。
  • 我尝试使用 gmail 但遇到了同样的问题。我的配置是对还是错?
  • 我想我说错了,您是否尝试过使用 PHPMAILER_METHOD_SMTP 而不是 PHPMAILER_METHOD_MAIL?您的配置看起来不错,但似乎您应该使用 PHPMAILER_METHOD_SMTP。这应该可以解决您的问题。
  • 谢谢,我会在完成跑步工作后尝试同样的方法。
  • 我试过“PHPMAILER_METHOD_SMTP”,但还是不行

标签: smtp mantis


【解决方案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 = 'shivarajr2128@gmail.com'; //replace it with your gmail address    
$g_smtp_password = '********'; //replace it with your gmail password    
$g_administrator_email = 'administrator@gmail.com'; # //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

第三步

设置电子邮件通知。

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

【讨论】:

  • 以上配置对我不起作用,我已复制并粘贴并更改了凭据。
猜你喜欢
  • 2014-07-07
  • 2018-07-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多