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.
Please follow these steps to help identify the issue:
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.
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.
Is the recipient email address correct? Does it exist?
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)”}
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?