XF 2.0 XenForo don't send emails to users

FedericoS

Active member
Hi, when a user try to register, XenForo don't send the Mails with this error log:

  • Swift_TransportException: Email to gamechannel1087@gmail.com failed: Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials 72-v6sm4238941wmh.0 - gsmtp "
  • src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383
  • Generated by: Unknown account
  • Jul 6, 2018 at 11:53 PM
Stack trace
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode('535-5.7.8 Usern...', Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('RSET\r\n', Array, Array)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/XOAuth2Authenticator.php(55): Swift_Transport_EsmtpTransport->executeCommand('RSET\r\n', Array)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php(176): Swift_Transport_Esmtp_Auth_XOAuth2Authenticator->authenticate(Object(Swift_SmtpTransport), 'infinitymsnet@g...', 'InfinityMsNet15...')
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(332): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport))
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(118): Swift_Transport_EsmtpTransport->_doHeloCommand()
#6 src/XF/Mail/Mailer.php(276): Swift_Transport_AbstractSmtpTransport->start()
#7 src/XF/Mail/Mail.php(335): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport))
#8 src/XF/Service/User/AbstractConfirmationService.php(85): XF\Mail\Mail->send()
#9 src/XF/Service/User/AbstractConfirmationService.php(63): XF\Service\User\AbstractConfirmationService->sendConfirmationEmail()
#10 src/XF/Service/User/Registration.php(306): XF\Service\User\AbstractConfirmationService->triggerConfirmation()
#11 src/XF/Service/User/Registration.php(265): XF\Service\User\Registration->sendRegistrationContact()
#12 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\User\Registration->_save()
#13 src/XF/Pub/Controller/Register.php(373): XF\Service\User\Registration->save()
#14 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Register), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#18 src/XF.php(328): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
["url"] => string(34) "/forum/index.php?register/register"
["referrer"] => string(46) "http://infinityms.it/forum/index.php?register/"
["_GET"] => array(1) {
["register/register"] => string(0) ""
}
["_POST"] => array(15) {
["d7f4db904657fbb0ad4736b3edab2c34afc5755a"] => string(11) "Orangotango"
["username"] => string(0) ""
["5b3d15fa5c9072d7cb14aca5d50b5ffb0203f46b"] => string(0) ""
["94458654e223970c424db974187243cb396104b3"] => string(25) "gamechannel1087@gmail.com"
["6d8b03c9992c46571639af3e32498f8d8ad14cf8"] => string(8) "********"
["dob_month"] => string(1) "1"
["dob_day"] => string(1) "1"
["dob_year"] => string(4) "2003"
["g-recaptcha-response"] => string(377) "03AEMEkEllvVfgQ_latl7NVJme_c8Sl0RKEOygZkgidC18Hl6LVCyEVmIJ8G4yh-hp3CmhoHL4d2QYKRe_IM8hYiOwMeJDlTSydYw9dkQN95hwfoOMLA_g1g27-hK5vdsMFe9gQPBf6XiYTZ9hsoycMwoCcEt_h7TsJ8jHewsUANsFw6R7i5dLwOeQNHlik6w2TOMDMIwthAoWxd8SIpiXDOpRo30lDtVUjFAsZe7yWJiXkbHxFh9K5-Vm4hmPnnp9F6h2pxWb9yoy-nsBFeTGmRCcjJS41p4zJXCVdnOhLUYzHJ6oYCqyG7YKjwp5zOoFx2UEgX2QKddJu1GAg4QvBy1sWjpE8nJ_Zx1Y3YY2WRDqog0vXuhar_0"
["reg_key"] => string(16) "f8Ho0lxe06WQK2zd"
["fa2e6c7ad8722f7f9e21d3ac0526f94dd6e19a94"] => string(16) "Europe/Amsterdam"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(26) "/forum/index.php?register/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

How can I solve? Thanks
 
I am now using the Default method, but the error is another, the Mail don't be sent anyway

  • ErrorException: Template error: Macro public:register_macros:email_choice_row is unknown
  • src/XF/Template/Templater.php:556
  • Generated by: Unknown account
  • Jul 7, 2018 at 12:56 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Macro public:re...', '/var/www/html/f...', 556, Array)
#1 src/XF/Template/Templater.php(556): trigger_error('Macro public:re...', 512)
#2 src/XF/Template/Templater.php(660): XF\Template\Templater->getTemplateMacro('public', 'register_macros', 'email_choice_ro...')
#3 internal_data/code_cache/templates/l4/s14/public/register_form.php(171): XF\Template\Templater->callMacro('register_macros', 'email_choice_ro...', Array, Array)
#4 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('register_form', Array)
#6 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Register\\For...', 'public:register...', Array)
#8 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}
Request state
array(4) {
["url"] => string(26) "/forum/index.php?register/"
["referrer"] => string(36) "http://infinityms.it/forum/index.php"
["_GET"] => array(1) {
["register/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
Back
Top Bottom