Hello,
I'm currently trying to migrate our old mantis version 1.2.2 to mantisbt 2.16;
And everything was going fine til I faced some issues regarding mails...
Here is my config_inc.php file:
# --- Email Configuration ---
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_port = 587;
$g_smtp_connection_mode = 'tls';
$g_smtp_username = 'mypersonnaladdress@ex.fr';
$g_smtp_password = '************';
$g_webmaster_email = 'mypersonnaladdress@ex.fr';
$g_from_email = 'mypersonnaladdress@ex.fr';
$g_return_path_email = 'mypersonnaladdress@ex.fr';
$g_administrator_email = 'mypersonnaladdress@ex.fr';
$g_from_name = 'STMS - Gestion des Demandes';
$g_enable_email_notification = ON;
$g_session_validation = ON;
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'logs/err.log';
Accordingly to documentations and topic I read til now, my configuration seems OK;
I tested SMTP using PHPMailer;
(mantisbt/vendor/phpmailer/phpmailer/examples/smtp.php)
I'm getting the mails in my mailbox, working..;
Now, on Mantis, notifications are not delivered on any mail addresses :/
Even using the test page in admin folder : mantisbt/admin/email_enqueue.php; i'm not getting any mail from that
In /var/log/mail.log file:
sm-msp-queue[3357]: My Unqualified host name (STMSDebian) unknown, sleeping for retry
sm-msp-queue[3357]: unable to qualify my own domain name (STMSDebian) -- using short name
Can it be the issue ?
[EDIT] : Corrected by changing short name in hosts file, but i'm still not getting any mails...
Please help me fix that issue;
Thanks & Regards.
Email notifications not working, admin/email_enqueue not working,PHPMailer working
Moderators: Developer, Contributor
Re: Email notifications not working, admin/email_enqueue not working,PHPMailer working
Fixed.
I fixed warning about config dir that was under web root path, so I moved it;
and didn't realized that I had 2 config_inc.php files;
So one was overwriting the other one with wrong values;
I removed the corrupted one and it's working fine now.
I fixed warning about config dir that was under web root path, so I moved it;
and didn't realized that I had 2 config_inc.php files;
So one was overwriting the other one with wrong values;
I removed the corrupted one and it's working fine now.