SMTP email sending problem

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
alexswamp
Posts: 2
Joined: 07 Feb 2022, 07:36

SMTP email sending problem

Post by alexswamp »

Hi Everyone!

I operate two mantis for two company with same settings (same mail server settings). One of mantis is working well, sending emails with cronjob, but the another doesn't want to send emails. Don't create log file, etc. I try run send_emails.php script by my hand. Now create log file:

Code: Select all

2022-09-19 12:52 CEST MAIL email_api.php:1409 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
2022-09-19 12:52 CEST MAIL email_api.php:1238 email_send_all() Server not responding for 5 seconds, aborting
The login settings is good, i can log in with that parameters. Without cronjob email sending, also can't work the email sending and very slow to send it (connect, etc). Now i change port from 25 to 465, now i reach the mail server, but can't auth.

Code: Select all

2022-09-19 13:20 CEST MAIL email_api.php:1409 email_send() ERROR: Message could not be sent - SMTP Error: Could not authenticate.
Mail settings:

Code: Select all

# Mail settings
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'mail.company.com';
$g_smtp_username = 'email@company.com';
$g_smtp_password = 'password';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_enable_email_notification = ON;
// $g_email_send_using_cronjob = ON;
Post Reply