Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tomasosho's avatar

Solved! Swift_RfcComplianceException Address in mailbox given [emailaddress ] does not comply with RFC 2822, 3.6.2.

I encountered Swift_RfcComplianceException Address in mailbox given [emailaddress ] does not comply with RFC 2822, 3.6.2. when sending welcome mail to my new users.

There was space in my from address. So i corrected it and it worked.
My advice is when you encounter this error, check for empty spaces in your address or your email address format.
0 likes
2 replies
tomasosho's avatar
tomasosho
OP
Best Answer
Level 4

you can leave your experience with this type of error here, let's help those just coming in.

3 likes
subashrijal's avatar

@tomasosho I have same error. But the problem is my email is valid but not valid with rfc complain. because my email looks like this, [email protected]. So I want to skip rfc check. Can you suggest any solutions.

Please or to participate in this conversation.