简体   繁体   English

Swift_TransportException无法使用用户名在SMTP服务器上进行身份验证

[英]Swift_TransportException Failed to authenticate on SMTP server with username

Hey awesome programmers! 嘿真棒的程序员!

Glad to see you all :) 很高兴见到你们:)

This is my site... http://www.newdelhifreeads.com I use cpanel . 这是我的网站... http://www.newdelhifreeads.com我使用cpanel

This type of question has been asked but mine is a little different. 有人提出过这类问题但我的问题有点不同。

Whenever anyone tries to register on my site or try to post a free ad, the following error message results: 每当有人试图在我的网站上注册或尝试发布免费广告时,会出现以下错误消息:

Swift_Transport Exception

Failed to authenticate on SMTP server with username "info@newdelhifreeads.com" using 2 possible authenticators

/home/newdelhi/public_html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Transport/Esmtp/AuthHandler.php(179)

167       foreach ($this->_getAuthenticatorsForAgent() as $authenticator)
168       {
169         if (in_array(strtolower($authenticator->getAuthKeyword()),
170           array_map('strtolower', $this->_esmtpParams)))
171         {
172           $count++;
173           if ($authenticator->authenticate($agent, $this->_username, $this->_password))
174           {
175             return;
176           }
177         }
178       }
179       throw new Swift_TransportException(
180         'Failed to authenticate on SMTP server with username "' .
181         $this->_username . '" using ' . $count . ' possible authenticators'
182         );
183     }
184   }
185   
186   /**
187    * Not used.
188    */
189   public function getMailParams()
190   {
191     return array();
Stack Trace
#0  
–  /home/newdelhi/public_html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Transport/EsmtpTransport.php(252): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Swift_SmtpTransport)
247 
248     $this->_capabilities = $this->_getCapabilities($response);
249     $this->_setHandlerParams();
250     foreach ($this->_getActiveHandlers() as $handler)
251     {
252       $handler->afterEhlo($this);
253     }
254   }
255   
256   /** Overridden to add Extension support */
257   protected function _doMailFromCommand($address)
#1  
–  /home/newdelhi/public_html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Transport/AbstractSmtpTransport.php(108): Swift_Transport_EsmtpTransport->_doHeloCommand()
103       catch (Swift_TransportException $e)
104       {
105         $this->_throwException($e);
106       }
107       $this->_readGreeting();
108       $this->_doHeloCommand();
109       
110       if ($evt)
111       {
112         $this->_eventDispatcher->dispatchEvent($evt, 'transportStarted');
113       }
#2  
–  /home/newdelhi/public_html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Mailer.php(74): Swift_Transport_AbstractSmtpTransport->start()
69   {
70     $failedRecipients = (array) $failedRecipients;
71     
72     if (!$this->_transport->isStarted())
73     {
74       $this->_transport->start();
75     }
76     
77     return $this->_transport->send($message, $failedRecipients);
78   }
79   
#3  
+  /home/newdelhi/public_html/protected/modules/Core/extensions/vendors/mail/YiiMail.php(133): Swift_Mailer->send(Swift_Message, array())
#4  
+  /home/newdelhi/public_html/protected/modules/User/services/UserService.php(311): YiiMail->send(YiiMailMessage)
#5  
+  /home/newdelhi/public_html/protected/modules/Core/extensions/base/FSM.php(106): UserService->registerInFrontEnd(array("User" => array("email" => "tips4youawesome@gmail.com", "first_name" => "Naveen", "last_name" => "Gift", "verifyCode" => "uumohu"), "btnRegister" => "Register"))
#6  
+  /home/newdelhi/public_html/protected/modules/Core/extensions/base/FSM.php(133): FSM::_run("User.User.registerInFrontEnd", array("User" => array("email" => "tips4youawesome@gmail.com", "first_name" => "Naveen", "last_name" => "Gift", "verifyCode" => "uumohu"), "btnRegister" => "Register"), false)
#7  
+  /home/newdelhi/public_html/protected/controllers/SiteController.php(139): FSM::run("User.User.registerInFrontEnd", array("User" => array("email" => "tips4youawesome@gmail.com", "first_name" => "Naveen", "last_name" => "Gift", "verifyCode" => "uumohu"), "btnRegister" => "Register"))
#8  
+  /home/newdelhi/public_html/yii-1.1.7.r3135/framework/web/actions/CInlineAction.php(50): SiteController->actionRegister()
#9  
+  /home/newdelhi/public_html/yii-1.1.7.r3135/framework/web/CController.php(300): CInlineAction->runWithParams(array())
#10 
+  /home/newdelhi/public_html/yii-1.1.7.r3135/framework/web/CController.php(278): CController->runAction(CInlineAction)
#11 
+  /home/newdelhi/public_html/yii-1.1.7.r3135/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array())
#12 
+  /home/newdelhi/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(328): CController->run("register")
#13 
+  /home/newdelhi/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(121): CWebApplication->runController("site/register")
#14 
+  /home/newdelhi/public_html/yii-1.1.7.r3135/framework/base/CApplication.php(155): CWebApplication->processRequest()
#15 
+  /home/`newdelhi`/public_html/`index.php`(42): `CApplication`->run()

Could anyone please help me out with this? 有人可以帮我解决这个问题吗?

It would be a great help! 这将是一个很大的帮助! Thanks.......... ;) 谢谢.......... ;)

This might be old but somebody might get help through this. 这可能是旧的,但有人可能会得到帮助。 I too faced the same problem and received a mail on my gmail account stating that someone is trying to hack your account through an email client or a different site. 我也面临同样的问题,并在我的Gmail帐户上收到一封邮件,说明有人试图通过电子邮件客户端或其他网站破解您的帐户。 THen I searched and found that doing below would resolve this issue. 我搜索过,发现下面这样做可以解决这个问题。

Go to https://accounts.google.com/UnlockCaptcha ‎ and unlock your account for access through other media/sites. 转到https://accounts.google.com/UnlockCaptcha并解锁您的帐户,以便通过其他媒体/网站进行访问。

UPDATE : 2015 更新:2015年

Also, you can try this, Go to https://myaccount.google.com/security#connectedapps At the bottom, towards right there is an option "Allow less secure apps". 此外,您可以尝试此操作,请访问https://myaccount.google.com/security#connectedapps在底部,右侧有一个选项“允许安全性较低的应用”。 If it is "OFF", turn it on by sliding the button. 如果是“OFF”,请通过滑动按钮将其打开。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Swift_TransportException无法使用共享主机上的2个可能的身份验证器使用用户名email@domain.com在SMTP服务器上进行身份验证 - Swift_TransportException Failed to authenticate on SMTP server with username email@domain.com using 2 possible authenticators on shared host PHP致命错误:'Swift_TransportException',消息'无法在SMTP服务器上进行身份验证 - PHP Fatal error: 'Swift_TransportException' with message 'Failed to authenticate on SMTP server 服务器端代码为451的Swift_TransportException - Swift_TransportException with code 451 on server side Laravel中的Swift_TransportException - Swift_TransportException in laravel 如何在实时服务器上的 Laravel 5.4 中发送电子邮件 Swift_TransportException 无法与主机 smtp.gmail.com 建立连接 - how to send email in laravel 5.4 on live server Swift_TransportException Connection could not be established with host smtp.gmail.com Laravel 无法使用用户名在 SMTP 服务器上进行身份验证 - Laravel Failed to authenticate on SMTP server with username 发送 email 时出现 Swift_TransportException - Swift_TransportException on sending email Swift_TransportException无法与主机smtp.gmail.com建立连接[连接超时#110] - Swift_TransportException Connection could not be established with host smtp.gmail.com [Connection timed out #110] AbstractSmtpTransport.php第404行中的Swift_TransportException:与smtp.gmail.com的连接:465超时 - Swift_TransportException in AbstractSmtpTransport.php line 404: Connection to smtp.gmail.com:465 Timed Out “无法在本地主机上与主机 smtp.gmail.com [#0] 建立 Swift_TransportException 连接” - “Swift_TransportException Connection could not be established with host smtp.gmail.com [ #0]” on localhost
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM