Email Notification Authentication Failure

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
chnbcln
Posts: 4
Joined: 04 Oct 2018, 07:42

Email Notification Authentication Failure

Post by chnbcln »

I'm new to Mantis and your help will be highly appreciated.

I'm currently having a problem with configuring the Email Notification of Mantisbt(Version 2.15.0).

Here's my current config_inc:

Code: Select all

<?php
$g_hostname               = 'localhost';
$g_db_type                = 'mysqli';
$g_database_name          = 'bugtracker';
$g_db_username            = 'root';
$g_db_password            = '';
$g_show_version			= ON;
$g_default_timezone       = 'Europe/Berlin';

$g_crypto_master_salt     = 'xxxxxxxxxxxxx';
$g_allow_signup	 = OFF;  
$g_enable_email_notification = ON; 
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host ='smtp.host.com'; 
$g_smtp_connection_mode = '';
$g_smtp_port = 25;
$g_smtp_username = 'XXX';
$g_smtp_password = '********';
$g_administrator_email = 'email@sam.com';

$g_from_name = ' Mantis Bug Tracker';
$g_webmaster_email = 'email@sam.com';
$g_return_path_email = 'email@sam.com';
$g_from_email = 'email@sam.com';
$g_email_send_using_cronjob = OFF;
$g_email_receive_own = ON;
$g_debug_email	= ON;

$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_EMAIL_VERBOSE | LOG_ALL ;
$g_log_destination = 'file:C:\mantisbt.log';
?>
And I am getting this kind of error message whenever.
2018-10-04 10:09 CEST MAIL_VERBOSE email_api.php:1214 email_send_all() Sending message 10734
2018-10-04 10:09 CEST MAIL_VERBOSE email_api.php:1346 email_send() Using debug email '1'
2018-10-04 10:09 CEST MAIL email_api.php:1353 email_send() ERROR: Message could not be sent - Invalid address: (addAnAddress to): 1
2018-10-04 10:09 CEST DB database_api.php:313 db_query() array (
0 => 'SELECT * FROM mantis_email_table WHERE email_id=\'10735\'',
1 => '0.0015',)
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email Notification Authentication Failure

Post by atrol »

$g_debug_email has to be set to a valid e-mail address if you want to use it.
ON is not a valid setting.
$g_debug_email
Used for debugging e-mail notifications. When it is '', the emails are sent normally. If set to an e-mail address, all messages are sent to it, with the original recipients (To, Cc, Bcc) included in the message body.
Default is ''.
Please use Search before posting and read the Manual
chnbcln
Posts: 4
Joined: 04 Oct 2018, 07:42

Re: Email Notification Authentication Failure

Post by chnbcln »

After changing the debug_email into a real email, i got the following error.
email_send() ERROR: Message could not be sent - SMTP Error: Could not authenticate.
Post Reply