簡體   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

我正在使用Laravel 4.1開發一個網站。 我配置了電子郵件系統,並在內置服務器localhost:8000上成功發送了電子郵件。 但是,當我在共享主機上托管Web時,它總是告訴:Swift_TransportException無法使用2個可能的身份驗證器在用戶名“ email@domain.com”的SMTP服務器上進行身份驗證,我不知道原因是什么? 我在此網站上搜索,但沒有解決方案。

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,

);

我也使用了我們網域的電子郵件,但是這都不起作用。 希望能有所幫助。

就我而言,我有一個Cpanel專用服務器。 我的主人告訴我,exim郵件服務器發生故障,並且每天重啟幾次。

看起來所有連接線程都已用完,然后被鎖定,直到重新啟動為止。

我的主機向池中添加了另外100個連接線程。 這很可能也對您有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM