Zend_Mail_Protocol_Exception: 5.7.8 Username and Password not accepted. Learn more at 5.7.8 https://support.google.com/mail/answer/14257 s64sm40095091pfi.77 - gsmtp in /var/www/html/magento2/qa-ee/vendor/magento/zendframework1/library/Zend/Mail/Protocol/Abstract.php:431 Stack trace: #0 /var/www/html/magento2/qa-ee/vendor/magento/zendframework1/library/Zend/Mail/Protocol/Smtp/Auth/Login.php(95): Zend_Mail_Protocol_Abstract->_expect(Array) #1 /var/www/html/magento2/qa-ee/vendor/magento/zendframework1/library/Zend/Mail/Protocol/Smtp.php(217): Zend_Mail_Protocol_Smtp_Auth_Login->auth() #2 /var/www/html/magento2/qa-ee/vendor/magento/zendframework1/library/Zend/Mail/Transport/Smtp.php(200): Zend_Mail_Protocol_Smtp->helo('localhost') #3 /var/www/html/magento2/qa-ee/vendor/magento/zendframework1/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail() #4 /var/www/html/magento2/qa-ee/app/code/MagePal/GmailSmtpApp/Model/Transport.php(54): Zend_Mail_Transport_Abstract->send(Object(Magento\Framework\Mail\Message)) #5 /var/www/html/magento2/qa-ee/vendor/magento/module-gift-card/Observer/GenerateGiftCardAccounts.php(286): MagePal\GmailSmtpApp\Model\Transport->sendMessage() #6 /var/www/html/magento2/qa-ee/vendor/magento/framework/Event/Invoker/InvokerDefault.php(73): Magento\GiftCard\Observer\GenerateGiftCardAccounts->execute(Object(Magento\Framework\Event\Observer)) #7 /var/www/html/magento2/qa-ee/vendor/magento/framework/Event/Invoker/InvokerDefault.php(61): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\GiftCard\Observer\GenerateGiftCardAccounts), Object(Magento\Framework\Event\Observer)) #8 /var/www/html/magento2/qa-ee/vendor/magento/framework/Event/Manager.php(65): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #9 /var/www/html/magento2/qa-ee/var/generation/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('sales_order_sav...', Array) #10 /var/www/html/magento2/qa-ee/vendor/magento/framework/Model/AbstractModel.php(627): Magento\Framework\Event\Manager\Proxy->dispatch('sales_order_sav...', Array) #11 [internal function]: Magento\Framework\Model\AbstractModel->afterCommitCallback() #12 /var/www/html/magento2/qa-ee/vendor/magento/framework/Model/ResourceModel/AbstractResource.php(94): call_user_func(Array) #13 /var/www/html/magento2/qa-ee/var/generation/Magento/Sales/Model/ResourceModel/Order/Interceptor.php(258): Magento\Framework\Model\ResourceModel\AbstractResource->commit() #14 /var/www/html/magento2/qa-ee/vendor/magento/framework/DB/Transaction.php(57): Magento\Sales\Model\ResourceModel\Order\Interceptor->commit() #15 /var/www/html/magento2/qa-ee/vendor/magento/framework/DB/Transaction.php(147): Magento\Framework\DB\Transaction->_commitTransaction() #16 /var/www/html/magento2/qa-ee/vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Save.php(193): Magento\Framework\DB\Transaction->save() #17 /var/www/html/magento2/qa-ee/var/generation/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save/Interceptor.php(25): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save->execute() #18 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/Action/Action.php(102): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->execute() #19 /var/www/html/magento2/qa-ee/vendor/magento/module-backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #20 [internal function]: Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http)) #21 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array) #22 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->___callParent('dispatch', Array) #23 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Array, 'adminAuthentica...') #24 /var/www/html/magento2/qa-ee/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #25 [internal function]: Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #26 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array) #27 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Array, 'log') #28 /var/www/html/magento2/qa-ee/vendor/magento/module-logging/App/Action/Plugin/Log.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #29 [internal function]: Magento\Logging\App\Action\Plugin\Log->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #30 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array) #31 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Array, 'designLoader') #32 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/Action/Plugin/Design.php(39): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #33 [internal function]: Magento\Framework\App\Action\Plugin\Design->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #34 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array) #35 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Array, 'adminMassaction...') #36 /var/www/html/magento2/qa-ee/vendor/magento/module-backend/App/Action/Plugin/MassactionKey.php(33): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #37 [internal function]: Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #38 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(140): call_user_func_array(Array, Array) #39 /var/www/html/magento2/qa-ee/var/generation/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save/Interceptor.php(40): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->___callPlugins('dispatch', Array, Array) #40 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/FrontController.php(55): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #41 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #42 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array) #43 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #44 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install') #45 /var/www/html/magento2/qa-ee/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #46 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #47 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array) #48 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'storeCookieVali...') #49 /var/www/html/magento2/qa-ee/vendor/magento/module-store/Model/Plugin/StoreCookie.php(78): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #50 [internal function]: Magento\Store\Model\Plugin\StoreCookie->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #51 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(140): call_user_func_array(Array, Array) #52 /var/www/html/magento2/qa-ee/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array) #53 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #54 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() #55 /var/www/html/magento2/qa-ee/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #56 {main} Next Magento\Framework\Exception\MailException: 5.7.8 Username and Password not accepted. Learn more at 5.7.8 https://support.google.com/mail/answer/14257 s64sm40095091pfi.77 - gsmtp in /var/www/html/magento2/qa-ee/app/code/MagePal/GmailSmtpApp/Model/Transport.php:56 Stack trace: #0 /var/www/html/magento2/qa-ee/vendor/magento/module-gift-card/Observer/GenerateGiftCardAccounts.php(286): MagePal\GmailSmtpApp\Model\Transport->sendMessage() #1 /var/www/html/magento2/qa-ee/vendor/magento/framework/Event/Invoker/InvokerDefault.php(73): Magento\GiftCard\Observer\GenerateGiftCardAccounts->execute(Object(Magento\Framework\Event\Observer)) #2 /var/www/html/magento2/qa-ee/vendor/magento/framework/Event/Invoker/InvokerDefault.php(61): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\GiftCard\Observer\GenerateGiftCardAccounts), Object(Magento\Framework\Event\Observer)) #3 /var/www/html/magento2/qa-ee/vendor/magento/framework/Event/Manager.php(65): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #4 /var/www/html/magento2/qa-ee/var/generation/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('sales_order_sav...', Array) #5 /var/www/html/magento2/qa-ee/vendor/magento/framework/Model/AbstractModel.php(627): Magento\Framework\Event\Manager\Proxy->dispatch('sales_order_sav...', Array) #6 [internal function]: Magento\Framework\Model\AbstractModel->afterCommitCallback() #7 /var/www/html/magento2/qa-ee/vendor/magento/framework/Model/ResourceModel/AbstractResource.php(94): call_user_func(Array) #8 /var/www/html/magento2/qa-ee/var/generation/Magento/Sales/Model/ResourceModel/Order/Interceptor.php(258): Magento\Framework\Model\ResourceModel\AbstractResource->commit() #9 /var/www/html/magento2/qa-ee/vendor/magento/framework/DB/Transaction.php(57): Magento\Sales\Model\ResourceModel\Order\Interceptor->commit() #10 /var/www/html/magento2/qa-ee/vendor/magento/framework/DB/Transaction.php(147): Magento\Framework\DB\Transaction->_commitTransaction() #11 /var/www/html/magento2/qa-ee/vendor/magento/module-sales/Controller/Adminhtml/Order/Invoice/Save.php(193): Magento\Framework\DB\Transaction->save() #12 /var/www/html/magento2/qa-ee/var/generation/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save/Interceptor.php(25): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save->execute() #13 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/Action/Action.php(102): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->execute() #14 /var/www/html/magento2/qa-ee/vendor/magento/module-backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #15 [internal function]: Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http)) #16 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array) #17 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->___callParent('dispatch', Array) #18 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Array, 'adminAuthentica...') #19 /var/www/html/magento2/qa-ee/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #20 [internal function]: Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #21 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array) #22 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Array, 'log') #23 /var/www/html/magento2/qa-ee/vendor/magento/module-logging/App/Action/Plugin/Log.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #24 [internal function]: Magento\Logging\App\Action\Plugin\Log->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #25 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array) #26 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Array, 'designLoader') #27 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/Action/Plugin/Design.php(39): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #28 [internal function]: Magento\Framework\App\Action\Plugin\Design->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #29 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array) #30 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Array, 'adminMassaction...') #31 /var/www/html/magento2/qa-ee/vendor/magento/module-backend/App/Action/Plugin/MassactionKey.php(33): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #32 [internal function]: Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #33 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(140): call_user_func_array(Array, Array) #34 /var/www/html/magento2/qa-ee/var/generation/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save/Interceptor.php(40): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->___callPlugins('dispatch', Array, Array) #35 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/FrontController.php(55): Magento\Sales\Controller\Adminhtml\Order\Invoice\Save\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #36 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #37 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array) #38 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #39 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install') #40 /var/www/html/magento2/qa-ee/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #41 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #42 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array) #43 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'storeCookieVali...') #44 /var/www/html/magento2/qa-ee/vendor/magento/module-store/Model/Plugin/StoreCookie.php(78): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #45 [internal function]: Magento\Store\Model\Plugin\StoreCookie->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #46 /var/www/html/magento2/qa-ee/vendor/magento/framework/Interception/Interceptor.php(140): call_user_func_array(Array, Array) #47 /var/www/html/magento2/qa-ee/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array) #48 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #49 /var/www/html/magento2/qa-ee/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() #50 /var/www/html/magento2/qa-ee/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #51 {main}