Fixed Symfony\Component\Mime\Exception\RfcComplianceException:

erdis

Member
Affected version
XF2.3 Beta 2
google workspaces mail account.
  • Symfony\Component\Mime\Exception\RfcComplianceException: Email to admin@admin.com failed setup: Email "0" does not comply with addr-spec of RFC 2822.
  • src/vendor/symfony/mime/Address.php:56

#0 src/XF/Mail/Mail.php(130): Symfony\Component\Mime\Address->__construct('0', 'admin')
#1 src/XF/Service/Contact.php(231): XF\Mail\Mail->setFrom(0, 'admin')
#2 src/XF/Service/Contact.php(198): XF\Service\Contact->getMail()
#3 src/XF/Pub/Controller/Misc.php(170): XF\Service\Contact->send()
#4 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Misc->actionContact(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Misc', 'Contact', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Misc), NULL)
#6 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Misc), NULL)
#7 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2589): XF\Mvc\Dispatcher->run()
#9 src/XF.php(532): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 3).

Change log:
Fix error when sending emails from the contact form.
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom