Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 when sending example email with recreated recipient #14456

Open
1 task done
KrGaj opened this issue Jan 14, 2025 · 0 comments
Open
1 task done

Error 500 when sending example email with recreated recipient #14456

KrGaj opened this issue Jan 14, 2025 · 0 comments
Labels
bug Issues or PR's relating to bugs email Anything related to email

Comments

@KrGaj
Copy link

KrGaj commented Jan 14, 2025

Mautic Series

5.2.x series

Mautic installed version

5.2.1

Way of installing

I cloned the Mautic repo (not recommended or supported)

PHP version

8.2

What browsers are you seeing the problem on?

Not relevant

What happened?

When trying to send example email with recreated recipient field, an error 500 occurs. I found that removing existing recipient from the list and creating the new one causes that the example_send[email][list] field has unset elements. For example, with one recipient without any changes, their email will be sent in example_send[email][list][0], but when that field removed and created again, it will be in example_send[email][list][1].

How can we reproduce this issue?

Step 1: On 'Emails' page, select some email channel
Step 2: Click the dropdown icon, and then select 'Send Example'
Step 3: Remove existing recipient from 'Recipients' list
Step 4: Click 'Add recipient'
Step 5: On the new field, type desired email address
Step 6: Click 'Send' button

Relevant log output

[2025-01-14T10:30:25.706423+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Mime\Exception\RfcComplianceException: "Email "1" does not comply with addr-spec of RFC 2822." at /home/www/mautic/www/vendor/symfony/mime/Address.php line 56 {"exception":"[object] (Symfony\\Component\\Mime\\Exception\\RfcComplianceException(code: 0): Email \"1\" does not comply with addr-spec of RFC 2822. at /home/www/mautic/www/vendor/symfony/mime/Address.php:56)"} {"hostname":"mautic.local","pid":5301}

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.

@KrGaj KrGaj added bug Issues or PR's relating to bugs needs-triage For new issues/PRs that need to be triaged labels Jan 14, 2025
@patrykgruszka patrykgruszka added email Anything related to email and removed needs-triage For new issues/PRs that need to be triaged labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs email Anything related to email
Projects
None yet
Development

No branches or pull requests

2 participants