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
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.
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;