View Issue Details

IDProjectCategoryView StatusLast Update
0025443mantisbtemailpublic2019-02-06 09:53
Reporterpikachu Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version2.19.0 
Target VersionFixed in Version 
Summary0025443: email queue stuck
Description

if users from active directory and e-mail field incorrectly filled, then all e-mail queue just stuck

Steps To Reproduce

scenarios:
if 2 e-mails addresses in a row (1@mail.com,2@mail.com)
if address doesn't exists (wrongaddress@mail.com)

then all future notifications will not sending at all

if start manual /scripts/php send_emails.php, when console output looks like that:

.../vendor/phpmailer/phpmailer/src/PHPMailer.php: 1352: PHPMailer\PHPMailer\PHPMailer - -> - postSend()
.../core/email_api.php: 1391: PHPMailer\PHPMailer\PHPMailer - -> - send()
.../core/email_api.php: 1216: - - - - email_send( <Object><EmailData> ( [email] => 'wrongaddress@mail.com', [subject] => '[Projectname 0004949]: Category', [body] => 'bug assigned:

.... some e-mail body...,

[metadata] => <array> { ['headers'] => <array> { ['keywords'] => '[Projectname] Category', ['In-Reply-To'] => '5f3a80de9316545ff601ebb582736f33' }, ['charset'] => 'utf-8', ['hostname'] => 'bugtrackeraddress.somedomain.com' }, [email_id] => '7778', [submitted] => '1548415068' ) )
.../scripts/send_emails.php: 40: - - - - email_send_all()

Sending emails...
2019-02-05 16:53 MSK MAIL_VERBOSE email_api.php:1204 email_send_all() Processing e-mail queue (174 messages)
2019-02-05 16:53 MSK MAIL_VERBOSE email_api.php:1215 email_send_all() Sending message 7778
INTERNAL APPLICATION ERROR:

Additional Information

if delete from table mantis_email_table problem records, then e-mail queue will be processed without problem

TagsNo tags attached.

Activities

dregad

dregad

2019-02-06 05:25

developer   ~0061413

Looks like an unhandled exception.

Can you re-run the script from command-line, with $g_show_detailed_errors = ON; and post the console output again (just the bit after INTERNAL APPLICATION ERROR:), so we have details about the error and its context.

pikachu

pikachu

2019-02-06 06:21

reporter   ~0061415

Sending emails...
2019-02-06 14:14 MSK MAIL_VERBOSE email_api.php:1204 email_send_all() Processing e-mail queue (32 messages)
2019-02-06 14:14 MSK MAIL_VERBOSE email_api.php:1215 email_send_all() Sending message 7953
INTERNAL APPLICATION ERROR: SMTP Error: The following recipients failed: somewrongaddress@mail.com: <somewrongaddress@mail.com>: Recipient address rejected: User unknown in virtual mailbox table<br />

seisnet

seisnet

2019-02-06 09:53

reporter   ~0061420

i've got the same problem.

Issue History

Date Modified Username Field Change
2019-02-06 00:50 pikachu New Issue
2019-02-06 05:25 dregad Status new => feedback
2019-02-06 05:25 dregad Note Added: 0061413
2019-02-06 06:21 pikachu Note Added: 0061415
2019-02-06 06:21 pikachu Status feedback => new
2019-02-06 09:53 seisnet Note Added: 0061420