简体   繁体   English

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

I'm develop a website using Laravel 4.1. 我正在使用Laravel 4.1开发一个网站。 I config my email system and send email successfully on built-in server localhost:8000. 我配置了电子邮件系统,并在内置服务器localhost:8000上成功发送了电子邮件。 But when I host the web on a shared hosting, it always tell: Swift_TransportException Failed to authenticate on SMTP server with username "email@domain.com" using 2 possible authenticators I don't know what the reason is? 但是,当我在共享主机上托管Web时,它总是告诉:Swift_TransportException无法使用2个可能的身份验证器在用户名“ email@domain.com”的SMTP服务器上进行身份验证,我不知道原因是什么? I've search on this site but no solution works. 我在此网站上搜索,但没有解决方案。

return array(

    'driver' => 'smtp',

    'host' => 'smtp.gmail.com',

    'port' => 587,

    'from' => array('address' => 'email@gmail.com', 'name' => 'Test email'),

    'encryption' => 'ssl',

    'username' => 'your_gmail_username',

    'password' => 'your_gmail_password',

    'sendmail' => '/usr/sbin/sendmail -bs',

    'pretend' => false,

);

I also used my our domain's email but it doesn't work neither. 我也使用了我们网域的电子邮件,但是这都不起作用。 Hope for help. 希望能有所帮助。

In my case, I had a Cpanel dedicated server. 就我而言,我有一个Cpanel专用服务器。 My host informed me that exim mail server was failing and restarting a couple times a day. 我的主人告诉我,exim邮件服务器发生故障,并且每天重启几次。

It looked like all connection threads were being used up and then locked until it restarts. 看起来所有连接线程都已用完,然后被锁定,直到重新启动为止。

My host added another 100 connection threads to the pool. 我的主机向池中添加了另外100个连接线程。 Most probably this help you as well. 这很可能也对您有帮助。

暂无
暂无

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

相关问题 Swift_TransportException无法使用用户名在SMTP服务器上进行身份验证 - Swift_TransportException Failed to authenticate on SMTP server with username Laravel,无法使用 3 个可能的身份验证器使用用户名“”在 SMTP 服务器上进行身份验证 - Laravel, Failed to authenticate on SMTP server with username "" using 3 possible authenticators 使用 2 个可能的身份验证器在用户名“***”的 SMTP 服务器上进行身份验证失败 - Failed to authenticate on SMTP server with username “***” using 2 possible authenticators 无法使用2个可能的身份验证器在SMTP服务器上使用用户名进行身份验证 - Failed to authenticate on SMTP server with username using 2 possible authenticators Laravel:无法使用 2 个可能的身份验证器在 SMTP 服务器上使用用户名进行身份验证 - Laravel :Failed to authenticate on SMTP server with username using 2 possible authenticators 如何在实时服务器上的 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 PHP致命错误:'Swift_TransportException',消息'无法在SMTP服务器上进行身份验证 - PHP Fatal error: 'Swift_TransportException' with message 'Failed to authenticate on SMTP server PHP Swift 邮件程序:无法使用 2 个可能的身份验证器在 SMTP 上进行身份验证 - PHP Swift mailer: Failed to authenticate on SMTP using 2 possible authenticators Swift_TransportException无法与主机smtp.gmail.com建立连接[连接超时#110] - Swift_TransportException Connection could not be established with host smtp.gmail.com [Connection timed out #110] “无法在本地主机上与主机 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