# Send email error RFC 2822

**URL:** <https://forum.mautic.org/t/send-email-error-rfc-2822/20968>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [September 23, 2021, 2:36am UTC](https://forum.mautic.org/t/send-email-error-rfc-2822/20968 "2021-09-23T02:36:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jardutra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jardutra/32/5862_2.png) [@jardutra](https://forum.mautic.org/u/jardutra)\
**Post date:** [September 23, 2021, 2:36am UTC](https://forum.mautic.org/t/send-email-error-rfc-2822/20968/1 "2021-09-23T02:36:10Z")

</div>

**Your software**  
My Mautic version is: 4.0  
My PHP version is: 7.4.23  
My Database type and version is: 5.7.23-23

**Your problem**  
My problem is:

These errors are showing in the log:  
[2021-09-23 02:27:44] mautic.CRITICAL: Uncaught PHP Exception Swift\_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home2/rzsho794/jornadadigital.top/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 150 {“exception”:"[object] (Swift\_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home2/rzsho794/jornadadigital.top/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:150)"}

Steps I have tried to fix the problem:  
I went into the configuration of my email server. Hostgartor and I created new emails for testing was not successful.

The email setup is correct but Mautic is not sending email help me please.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 23, 2021, 9:57am UTC](https://forum.mautic.org/t/send-email-error-rfc-2822/20968/2 "2021-09-23T09:57:26Z")

</div>

> [@jardutra](#):
>
> Address set in PathHeader does not comply with addr-spec of RFC 2822.

Hi,

The exception itself says there is something wrong in email address fields such as From, Sender or Reply-To fields. Swift Mailer strictly follow RFC standard to avoid emails being caught by spam checker tools. There are following reason can lead to this error.

- Incorrect email address format in to,from or reply-to fields
- Email address or host does not exist
- From email address should be valid working email address
- Not fully qualified domain name used in from email address

Can you please check if any of these help?

Thx,  
Joey

---

<div class="post-metadata">

**Author:** ![jardutra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jardutra/32/5862_2.png) [@jardutra](https://forum.mautic.org/u/jardutra)\
**Post date:** [September 23, 2021, 1:09pm UTC](https://forum.mautic.org/t/send-email-error-rfc-2822/20968/3 "2021-09-23T13:09:48Z")

</div>

Dear Joeyk,

The problem is that this error does not correspond to reality, I have already configured 3 types of emails.

Several ways and Mautic sends this message…

There is a way to disable this validation that is definitely inconsistent.

I copy and paste the data from my email hosting…

I configured everything on 08.09 it was working correctly yesterday when I went to do the email campaigns this error started to appear…

thanks for your time, have some solution.

 ![EMAIL](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3aea53a9b51834588b3b2e07a208c08c53f7e418.jpeg)

---

<div class="post-metadata">

**Author:** ![zaharovrd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zaharovrd/32/7799_2.png) [@zaharovrd](https://forum.mautic.org/u/zaharovrd)\
**Post date:** [August 31, 2022, 7:56am UTC](https://forum.mautic.org/t/send-email-error-rfc-2822/20968/4 "2022-08-31T07:56:17Z")

</div>

Also error  
Version 4.1.1

[2022-08-31 07:52:44] mautic.CRITICAL: Uncaught PHP Exception Swift\_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/mautic/m.dveri-provance.ru/docroot/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 150 {“exception”:“[object] (Swift\_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/mautic/m.dveri-provance.ru/docroot/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:150)”} {“hostname”:“[m.dveri-provance.ru](http://m.dveri-provance.ru)”,“pid”:496730}
