Page 1 of 1

Mantisbt does not send emails

Posted: 23 Oct 2023, 16:46
by userAnonimo
I included the configuration in the config_inc.php file and sendmail.ini file, but it still doesn't send emails.
$g_smtp_connection_mode = 'ssl'; ---> There I put "tls" and "ssl", it still doesn't work

config_inc.php

// GMAIL
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = "smtp.gmail.com";
$g_smtp_port = 587;
$g_smtp_username = "**@gmail.com";
$g_smtp_password = "password";
$g_smtp_connection_mode = 'tls';
$g_webmaster_email = '**@gmail.com';
$g_from_email = '**@gmail.com';
$g_return_path_email = '**@gmail.com';

Re: Mantisbt does not send emails

Posted: 24 Oct 2023, 06:56
by cas
Did you try the email check in the admin section?

Re: Mantisbt does not send emails

Posted: 10 Nov 2023, 13:55
by userAnonimo
After successfully performing local tests with mantisbt, configuring config_inc.php as follows:
$g_allow_signup = ON;
$g_enable_email_notification = ON;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username= '***0987@gmail.com';
$g_smtp_password = 'clave de aplicacion;
$g_administrator_email='***0987@gmail.com';
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX;
$g_log_destination = "C:\xampp\mailoutput";

Once the matter was validated, mantisbt was mounted on a virtual machine with an Oracle Linux 8 operating system, the respective installation of apache, php, phpjson, mysql was carried out. By installing mantisbt successfully, the config_inc.php file is configured again with the difference that the log path changes:
$g_log_destination = "/var/log/httpd/";
In local xampp it was necessary to configure the sendmail.ini file, in linux what is the procedure or similarity to sendMail for sending emails? Since it doesn't work there, I have been searching the help forums, but I have not found a solution.