Fixed swift mailer error log

briansol

Well-known member
Affected version
2.2
Logged 10 of these from the same user. Looks like a spammer, so may be suspicious.


Server error log
  • Swift_AddressEncoderException: Email to tempоо9999@gmail.com failed: Non-ASCII characters not supported in local-part
  • src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/AddressEncoder/IdnAddressEncoder.php:40
  • Generated by: Unknown account
  • Jun 24, 2021 at 3:29 AM

Stack trace​

#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(334): Swift_AddressEncoder_IdnAddressEncoder->encodeString('tempоо9999@gm...')
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(303): Swift_Mime_Headers_MailboxHeader->createNameAddressStrings(Array)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(246): Swift_Mime_Headers_MailboxHeader->createMailboxListString(Array)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderSet.php(309): Swift_Mime_Headers_MailboxHeader->getFieldBody()
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(529): Swift_Mime_SimpleHeaderSet->toString()
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php(604): Swift_Mime_SimpleMimeEntity->toByteStream(Object(Swift_Transport_StreamBuffer))
#6 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Message.php(162): Swift_Mime_SimpleMessage->toByteStream(Object(Swift_Transport_StreamBuffer))
#7 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php(129): Swift_Message->toByteStream(Object(Swift_Transport_StreamBuffer))
#8 src/XF/Mail/Mailer.php(304): Swift_Transport_SendmailTransport->send(Object(Swift_Message), Array)
#9 src/XF/Mail/Mail.php(404): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SendmailTransport), NULL, true)
#10 src/XF/Service/User/AbstractConfirmationService.php(85): XF\Mail\Mail->send()
#11 src/XF/Service/User/AbstractConfirmationService.php(63): XF\Service\User\AbstractConfirmationService->sendConfirmationEmail()
#12 src/XF/Service/User/Registration.php(396): XF\Service\User\AbstractConfirmationService->triggerConfirmation()
#13 src/XF/Service/User/Registration.php(318): XF\Service\User\Registration->sendRegistrationContact()
#14 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\User\Registration->_save()
#15 src/XF/Pub/Controller/Register.php(422): XF\Service\User\Registration->save()
#16 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#17 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#18 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#19 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#20 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#21 src/XF.php(488): XF\App->run()
#22 index.php(20): XF::runApp('XF\\Pub\\App')
#23 {main}

Request state​

array(4) {
["url"] => string(18) "/register/register"
["referrer"] => string(31) "https://xxxxxx.com/register/"
["_GET"] => array(0) {
}
["_POST"] => array(14) {
["username"] => string(0) ""
["958f21925df485767a5a2e398f9ced49ed9c6a89"] => string(14) "Tempomos Peami"
["55b9dba808289f70b39d5e6cff897aba2b537a49"] => string(0) ""
["13f3bcafe084ce50975e5f96b3aa38d0065ea606"] => string(22) "tempоо9999@gmail.com"
["password"] => string(8) "********"
["a8db97a42d85239cc83b766fad07dc58cf38b23e"] => string(8) "********"
["g-recaptcha-response"] => string(484) "03AGdBq26z4aNJVxIUCLEOCksDYVVjcIkVnV1ZPnCadbcExZw6RiRrJF7Ck0eAZMQsWgsJIxMfNreOrufPLhoeXfrbirW4KvZk_S6zLPPJ8tTj-e3IWVPe_wyADMxrNaeLq69MPhlHv-OVjOzCCbC8L4t1pCFjdSvZ2bmwzcKQseXn__shW2FheF7-pi85LvTJ87nGKoCknw-8K175zt5SKI4gjQBRTnFDaam8gLhCSngEG1xsTVlDvQo7705o2Nb2wh2F2GHnMxnIRFw9c4MMGUGF9CmlFprd_HsGaRvoTCuMqpSKlHNlInJ123tB1tR9DKkLrGP7GBsWP6AAOeMeqwVnogxc-qY-ymfRUO6CpIPeEq5ODSOn8hV971NES0nxV3hPwPZ16gVTWiJrcDsuS66eokZJaQp2Ikv-TJNLUvtfRAa8khHECCdk6x-5xkhwByFWghqq_LAN7XSymYJpUaJHrVzQ6qy3Qg"
["accept"] => string(1) "1"
["submit"] => string(0) ""
["reg_key"] => string(16) "LJZB4_DSxzo0u9Ss"
["55f1d733ccf8a30a0831ebd81cfa897e61a3cb32"] => string(0) ""
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(10) "/register/"
["_xfWithData"] => string(1) "1"
}
}
 

XF Bug Bot

XenForo bug fixer bot
Staff member
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.2.6).

Change log:
Ensure that non-ASCII characters are not in the local part of an email address.
There may be a delay before changes are rolled out to the XenForo Community.
 

Cl0udzz

Member
i also recive an similar issue when i try to contact administrator via button "contact administrator"
someone build an downloader page addon for me and there are a few buttons like:

"retry?" / "contact administrator" / "download not working?" /
When i press the contact admininistrator button i revice this error message:

1636138827813.png
Is this an XF based problem or does the addon need to bugfix?
What is that message meaning ?
 
Top