Hello,
I am receiving error below from logs. But there are emails that I can still receive from mantis.
2017-09-25 09:04 CEST MAIL email_api.php:1385 email_send() ERROR: Message could not be sent - SMTP Error: Could not authenticate.
2017-09-25 09:04 CEST DB email_queue_api.php:170 email_queue_get() array (
0 => 'SELECT * FROM mantis_email_table WHERE email_id=\'468\'',
1 => '0.0009',
)
2017-09-25 09:04 CEST DB email_queue_api.php:185 email_queue_delete() array (
0 => 'DELETE FROM mantis_email_table WHERE email_id=\'467\'',
1 => '0.0108',
)
2017-09-25 09:04 CEST DB email_queue_api.php:170 email_queue_get() array (
0 => 'SELECT * FROM mantis_email_table WHERE email_id=\'468\'',
Below is my config_inc.php
# --- Email Configuration ---
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'ssl://smtp.gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_port = 465;
$g_smtp_connection_mode = 'SSL';
$g_smtp_username = 'xxxxx@gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = 'xxxxx'; # used with PHPMAILER_METHOD_SMTP
$g_webmaster_email = 'xxx@xxx';
$g_from_email = 'noreply@example.com'; # the "From: " field in emails
$g_return_path_email = 'xxx@xxx'; # the return address for bounced mail
# $g_from_name = 'Mantis Bug Tracker';
# $g_email_receive_own = OFF;
# $g_email_send_using_cronjob = OFF;
$g_enable_email_notification = ON;
#Log
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX | LOG_DATABASE | LOG_LDAP;
$g_log_destination = 'file:/data/apache2/htdocs/mantisbt/log/mantisbt.log';
# --- Attachments / File Uploads ---
# $g_allow_file_upload = ON;
# $g_file_upload_method = DATABASE; # or DISK
# $g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
# $g_max_file_size = 5000000; # in bytes
# $g_preview_attachments_inline_max_size = 256 * 1024;
# $g_allowed_files = ''; # extensions comma separated, e.g. 'php,html,java,exe,pl'
# $g_disallowed_files = ''; # extensions comma separated
As mentioned above I am still receiving email from mantis, so I am thinking my configuration is correct. I have also double check username/password and this is correct. Email is sending in delay. What could be other reason why the email is not being sent right away?
The mantis_email_table is getting queued up and getting delay on mantis page responses.
Can you advise what I have may missed and where else i can look into?
Question on email
Moderators: Developer, Contributor
Re: Question on email
Hello,
Can you please advise?
Are there any restrictions on the email body? If so, what are these?
Can you please advise?
Are there any restrictions on the email body? If so, what are these?