[英]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.