SMTP Error: Could not authenticate.SMTP
Posted: 09 Feb 2022, 20:51
Hi all, I am having problems with sending using outlook365. When I do some tests using /admin/email_queue.php the first few tests work and then it stops working. I try sending a password reset email and it gets queued and I see it in the mantis_email_table.
In the logs I get the following error
2022-02-09 15:03 -03 MAIL email_api.php:1432 email_send() ERROR: Message could not be sent - SMTP Error: Could not authenticate.SMTP server error: Called RSET without being connected
2022-02-09 15:43 -03 MAIL email_api.php:1432 email_send() ERROR: Message could not be sent - SMTP Error: Could not authenticate.SMTP server error: Called RSET without being connected
This is the configuration in config/config_inc.php
###########################
MantisBT Email Settings
###########################
$g_enable_email_notification = ON;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = '587';
$g_smtp_username = 'mantis@my_domain.com';
$g_smtp_password = 'my_pass';
$g_administrator_email = 'mantis@my_domain.com';
$g_webmaster_email=$g_administrator_email;
$g_return_path_email = 'mantis@my_domain.com';
$g_from_email= 'mantis@my_domain.com';
$g_from_name = 'Soporte';
$g_email_send_using_cronjob = OFF;
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/srv/www/vhosts/my_domain.com/mantisbt.log';
I will be grateful for any help you can give me.
Regards
In the logs I get the following error
2022-02-09 15:03 -03 MAIL email_api.php:1432 email_send() ERROR: Message could not be sent - SMTP Error: Could not authenticate.SMTP server error: Called RSET without being connected
2022-02-09 15:43 -03 MAIL email_api.php:1432 email_send() ERROR: Message could not be sent - SMTP Error: Could not authenticate.SMTP server error: Called RSET without being connected
This is the configuration in config/config_inc.php
###########################
MantisBT Email Settings
###########################
$g_enable_email_notification = ON;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = '587';
$g_smtp_username = 'mantis@my_domain.com';
$g_smtp_password = 'my_pass';
$g_administrator_email = 'mantis@my_domain.com';
$g_webmaster_email=$g_administrator_email;
$g_return_path_email = 'mantis@my_domain.com';
$g_from_email= 'mantis@my_domain.com';
$g_from_name = 'Soporte';
$g_email_send_using_cronjob = OFF;
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/srv/www/vhosts/my_domain.com/mantisbt.log';
I will be grateful for any help you can give me.
Regards