500 error when sending test email

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

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.

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 to ensure everything is correct.
  3. Is the recipient email address correct? Does it exist?

I hope this helps!
Best regards,
Ricardo

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 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

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

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.

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

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.

1 Like