# 500 Internal Server Error when Trying to Send Single Email or Test Email (Using Amazon SES)

**URL:** <https://forum.mautic.org/t/500-internal-server-error-when-trying-to-send-single-email-or-test-email-using-amazon-ses/13337>\
**Category:** Product Support\
**Created:** [March 11, 2020, 11:30pm UTC](https://forum.mautic.org/t/500-internal-server-error-when-trying-to-send-single-email-or-test-email-using-amazon-ses/13337 "2020-03-11T23:30:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zhammer/32/1039_2.png) [@zhammer](https://forum.mautic.org/u/zhammer)\
**Post date:** [March 11, 2020, 11:30pm UTC](https://forum.mautic.org/t/500-internal-server-error-when-trying-to-send-single-email-or-test-email-using-amazon-ses/13337/1 "2020-03-11T23:30:34Z")

</div>

**Your software**  
My Mautic version is: v2.16.0  
My PHP version is: 7.2

**Your problem**  
My problem is: Whenever I click to send a direct email or a test email, I’m getting this error:

 ![CleanShot 2020-03-11 at 18.24.14@2x](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/8052e5b2f97b545570818d342d3667bdfe97ac6c.jpeg)

These errors are showing in the log:

```auto
[2020-03-11 23:13:30] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: "Address set in PathHeader does not comply with addr-spec of RFC 2822." at /home/crm.regh.io/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {"exception":"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/crm.regh.io/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2020-03-11 23:23:58] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: "Address set in PathHeader does not comply with addr-spec of RFC 2822." at /home/crm.regh.io/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {"exception":"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/crm.regh.io/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []

```

I believe the last error is the most relevant one to this issue.

Steps I have tried to fix the problem:  
I’ve cleared the cache and updated schema (no idea if those are relevant to this.)

I did not always have this issue… I got this issue after trying to fix my bounce management and sent a bunch of emails to Amazon’s bounce management thing. I feel like it was after that that this started.

---

<div class="post-metadata">

**Author:** ![zhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zhammer/32/1039_2.png) [@zhammer](https://forum.mautic.org/u/zhammer)\
**Post date:** [March 14, 2020, 6:42pm UTC](https://forum.mautic.org/t/500-internal-server-error-when-trying-to-send-single-email-or-test-email-using-amazon-ses/13337/2 "2020-03-14T18:42:42Z")

</div>

Anyone have any ideas? Hoping to get some help or direction on this

---

<div class="post-metadata">

**Author:** ![izojunior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/izojunior/32/3704_2.png) [@izojunior](https://forum.mautic.org/u/izojunior)\
**Post date:** [October 19, 2020, 9:42pm UTC](https://forum.mautic.org/t/500-internal-server-error-when-trying-to-send-single-email-or-test-email-using-amazon-ses/13337/3 "2020-10-19T21:42:39Z")

</div>

I have the same problem: [Error 500 sending email](https://forum.mautic.org/t/error-500-sending-email/16644)

---

<div class="post-metadata">

**Author:** ![der\_leole](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@der\_leole](https://forum.mautic.org/u/der_leole)\
**Post date:** [September 29, 2023, 2:44pm UTC](https://forum.mautic.org/t/500-internal-server-error-when-trying-to-send-single-email-or-test-email-using-amazon-ses/13337/4 "2023-09-29T14:44:24Z")

</div>

No idea if this is related or if anyone else is having these problems, but what fixed this exact error for me was deleting everything in the Mautic Email settings that had to do with bounce and complaint handling.

I don’t mean the option at the very top, I mean all the imap inbox monitoring.

---

<div class="post-metadata">

**Author:** ![triton123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/triton123/32/12703_2.png) [@triton123](https://forum.mautic.org/u/triton123)\
**Post date:** [November 28, 2024, 4:23pm UTC](https://forum.mautic.org/t/500-internal-server-error-when-trying-to-send-single-email-or-test-email-using-amazon-ses/13337/5 "2024-11-28T16:23:54Z")

</div>

Hey, thanks for replying. this help me.
