# 500 error when sending test email

**URL:** <https://forum.mautic.org/t/500-error-when-sending-test-email/35237>\
**Category:** Product Support\
**Created:** [March 10, 2025, 4:00pm UTC](https://forum.mautic.org/t/500-error-when-sending-test-email/35237 "2025-03-10T16:00:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggrey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ggrey/32/13778_2.png) [@ggrey](https://forum.mautic.org/u/ggrey)\
**Post date:** [March 10, 2025, 4:00pm UTC](https://forum.mautic.org/t/500-error-when-sending-test-email/35237/1 "2025-03-10T16:00:39Z")

</div>

**Your software**  
My Mautic version is: 5.2.3  
My PHP version is: 8.1.3  
My Database type and version is: 11.2.6-MariaDB-ubu2204

**Your problem**  
i tried to send a test email from channels \> email \> send example and the pop up showed the

# [Uh oh! I think I broke it. If I do it again, please report me to the system administrator] with a 500 error.

These errors are showing in the log:

[2025-03-10T15:39:54.814455+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Mime\Exception\RfcComplianceException: “Email “1” does not comply with addr-spec of RFC 2822.” at /var/www/html/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 /var/www/html/vendor/symfony/mime/Address.php:56)”}

Steps I have tried to fix the problem: I could only see the error happened with an address which contains a . in the middle, so [xxxxxx.yyyyy@mail.com](mailto:xxxxxx.yyyyy@mail.com)

if there is an issue with any address dotted, i think we have a serious problem here. will try some other test and keep you posted.

---

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [March 10, 2025, 4:44pm UTC](https://forum.mautic.org/t/500-error-when-sending-test-email/35237/2 "2025-03-10T16:44:01Z")

</div>

Hi @ggrey,

Please follow these **steps** to help identify the issue:

1. Check your instance email settings (under Configurations) to ensure that **SMTP** is correctly configured and that the sender email address is valid. Once you have entered the correct email and password, try sending a **test email** to confirm that SMTP is set up properly. After that, send the test email again from the Channels section.
2. Verify whether your email was created using HTML/MJML and ensure it is properly formatted. If you created it manually, [validate the code](https://crafting.email/mjml-validator/) to ensure everything is correct.
3. Is the recipient email address correct? Does it exist?

I hope this helps!  
Best regards,  
Ricardo

---

<div class="post-metadata">

**Author:** ![ggrey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ggrey/32/13778_2.png) [@ggrey](https://forum.mautic.org/u/ggrey)\
**Post date:** [March 10, 2025, 6:51pm UTC](https://forum.mautic.org/t/500-error-when-sending-test-email/35237/3 "2025-03-10T18:51:53Z")

</div>

Hi Ricardo, thanks for the hints but everything is working fine on my newly installed instance. SMTP fine, the system sends emails but i have checked now with my personal email with [name.surname@gmail.com](mailto:name.surname@gmail.com) and it shows the same error. as said, it must be something to do with the dot in the middle of it. any other email is sent out just fine. here is same error in the logs

[2025-03-10T18:47:30.090305+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Mime\Exception\RfcComplianceException: “Email “1” does not comply with addr-spec of RFC 2822.” at /var/www/html/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 /var/www/html/vendor/symfony/mime/Address.php:56)”}

found this on the giyhub

> <https://github.com/mautic/mautic/issues/14456>
>
> \### 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
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct
> 
> \<br /\>\<hr\>
> Care about this issue? Want to get it resolved sooner? If you are a \<a href='https://www.mautic.org/become-a-member-of-mautic'\>member of Mautic\</a\>, you can add some funds to the \<a href='https://opencollective.com/mautic/projects/bounties'\>Bounties Project\</a\> 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 \<a href='https://contribute.mautic.org/product-team/mautic-bounty-programme'\>here.\</a\>

---

<div class="post-metadata">

**Author:** ![ggrey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ggrey/32/13778_2.png) [@ggrey](https://forum.mautic.org/u/ggrey)\
**Post date:** [March 10, 2025, 8:10pm UTC](https://forum.mautic.org/t/500-error-when-sending-test-email/35237/4 "2025-03-10T20:10:04Z")

</div>

just a quick update, sending to same dotted address is fine in the regular way, so issue is only while sending example email.

---

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [March 11, 2025, 11:53am UTC](https://forum.mautic.org/t/500-error-when-sending-test-email/35237/5 "2025-03-11T11:53:29Z")

</div>

Hello @ggrey

My email address also contains a dot, just like yours, and I was able to send and receive a test email successfully. I’m using Mautic v5.2.2.

 ![Test email sent notification](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/39708c539516a8e95576f657de06c65c2b889143.png)

This makes me think that there might be a missing configuration or an issue with your installation. Alternatively, it could be a bug in that specific Mautic version?

Best regards,  
Ricardo

---

<div class="post-metadata">

**Author:** ![ggrey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ggrey/32/13778_2.png) [@ggrey](https://forum.mautic.org/u/ggrey)\
**Post date:** [March 11, 2025, 5:50pm UTC](https://forum.mautic.org/t/500-error-when-sending-test-email/35237/6 "2025-03-11T17:50:20Z")

</div>

Hi ricardo, have no idea what could be missing in the configuration as everything else runs just fine. i’m on the 5.2.3

maybe i should forward to the git hub and see what they say? But at the end of the day i think i can live with it.

---

<div class="post-metadata">

**Author:** ![patryk.gruszka](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/patryk.gruszka/32/9813_2.png) [@patryk.gruszka](https://forum.mautic.org/u/patryk.gruszka)\
**Post date:** [April 10, 2025, 9:26am UTC](https://forum.mautic.org/t/500-error-when-sending-test-email/35237/7 "2025-04-10T09:26:38Z")

</div>

This is a problem with the sorted lists after removing an element. The fix is ready to test:: [DPMMA-3090 Fix sortable list after removing element by patrykgruszka · Pull Request #14866 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/14866)
