2017-02-28 75 views
0

我已經證實了我的自定義域,我總是得到這個錯誤:PHP笨Mailgun - 無法發送電子郵件

554 Free accounts are for test purposes only. Please upgrade or add the address to authorized recipients in Account Settings. The following SMTP error was encountered: 554 Free accounts are for test purposes only. Please upgrade or add the address to authorized recipients in Account Settings. Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

配置:

$this->email->initialize(array(
     'mailtype' => 'html', 
     'protocol' => 'smtp', 
     'smtp_timeout' => 30, 
     'smtp_host' => 'ssl://smtp.mailgun.org', 
     'smtp_port' => '465', 
     'smtp_user' => '***', 
     'smtp_pass' => '***' 
    )); 

出了什麼問題?嘗試在兩個本地主機/服務器 - 並顯示相同的錯誤。這不是憑證問題,因爲我可以在Mailgun儀表板上看到日誌。

+0

請在帳戶設置中將授權收件人升級或添加地址。帳戶設置頁面上的內容是什麼? – Borjante

+0

我的錯 - 我已經添加了信用卡和它的工作.. – RonZ

+0

Np,下次閱讀錯誤:) – Borjante

回答

1

有點煩人 - 但解決辦法是將信用卡添加到帳戶。

1

信用卡無需添加。該錯誤消息清楚地表明沒有授權的收件人已被添加。 Mailgun允許在30天內免費發送10,000封電子郵件,這些電子郵件可用於測試(甚至從本地主機),只要添加了授權的電子郵件ID即可(最多5個)。這可以在儀表板頁面上完成。文件中給出的說明。我已經使用本地主機(WAMP服務器)在我已添加的3個授權的電子郵件收件人上測試了我的郵件程序。僅當超過10000個電子郵件配額時纔會添加信用卡。

+0

聽起來很奇怪。除了信用卡之外,我沒有改變任何東西 - 這就是我必須改變才能實現的。 授權的電子郵件沒有幫助我。 – RonZ

2

很確定他們最近改變了他們的政策:「沒有信用卡,你只能被授權的收件人。」 你只需要添加CC來使其工作。 - 他們應該把這個信息放在註冊頁面的頂部!!! 雖然第一個10,000仍然是免費的。