Segment email does not stop resending email to all pending contacts with long lead name
Mautic Series
5.2.x series
Mautic installed version
5.2.3
Way of installing
I downloaded a release from https://www.mautic.org/mautic-releases
PHP version
8.3
What browsers are you seeing the problem on?
No response
What happened?
We are using AWS SES and we were on v5.2.1 where we had segment email stuck on sending emails where it would come across a very long lead name. The error on the log file was "Address length is more than 320 characters long". It would affect all remaining contacts and get stuck with all of them in Pending. No emails would get sent out.
Then we came across the fix #14577 which is available in v5.2.3. So, we decided to upgrade. Now, the email gets sent out even to those contacts with very long lead name. Unlike what the fix was supposed to do, the email sent out to those long lead named contacts, still contains the lead name followed by email address. Also, they are still Pending contacts in email sending stats. This is causing Mautic to keep sending the same email to those pending contacts with long lead name over and over again like in an infinite loop as the Pending status never gets updated. The logs are filled with same errors from v5.2.1.
I think the fix applied with #14577 is not working somehow as truncating long email addresses to only the email part (without display name) when they exceed the configured limit as described in that fix does not seem to be working.
How can we reproduce this issue?
Step 1: Create a few contacts with total characters of First name + Last name to be more than 33 characters Step 2: Add them to a new segment Step 3: Create a new segment email and add the segment created in Step 2 Step 4: Set the segment email created in Step 3 to run
Relevant log output
Code of Conduct
- I confirm that I have read and agree to follow this project's Code of Conduct
Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.
Source: mautic/mautic