电子邮件通知在螳螂错误跟踪器中不起作用



我已经安装了螳螂并创建了用户,但我的电子邮件通知不起作用。 你能帮帮我吗? 我按如下方式配置了我的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 ?
步骤

1

按照以下详细信息更新您的螳螂BT 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;    

步骤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.

要解决"发送邮件至以下地址时出现问题",请检查您的 php/mail 服务器设置。 在 Amazon Linux 2 上,5.1 内核配置了 sendmail,并使用"PHPMAILER_METHOD_SENDMAIL"我必须启用 Mantis 日志记录(也应该有助于 SMTP 方法):

  1. 创建了一个可写给我的 apache 用户
    mkdir /var/log/mantis chown apache /var/log/mantis chmod 770 /var/log/mantis

  2. 添加了两行以将所有内容记录到 config/config_inc.php
    $g_log_destination = 'file:/var/log/mantis/mantis.log'; $g_log_level = LOG_EMAIL_VERBOSE;

就我而言,有两个问题 - Mantis.log显示我需要$g_from_email中的有效电子邮件地址,然后查看/var/log/maillog我的SES不喜欢我的$g_return_path_email并且由于错误的$g_return_path_email子域而跳出它。

相关内容

  • 没有找到相关文章

最新更新