2017-08-19 54 views
0

我正在嘗試發送symfony 2郵件。我使用的是谷歌套件,我在aruba.it上有一個註冊的域名,但使用谷歌郵件作爲郵件。這是一個域名地址,即[email protected]。在配置文件中我有:Symfony 2和swiftmailer,我無法用Gmail套裝發送郵件

Auth_mode: login 
    Transport: "% mailer_transport%" 
    Encryption: "% mailer_encryption%" 
    Host: "% mailer_host%" 
    Port: "% mailer_port%" 
    Username: "% mailer_user%" 
    Password: "% mailer_password%" 
    Sender_address: "% mailer_sender_address%" 

在參數文件,mailer_transport:SMTP mailer_host:smtp.gmail.com。但郵件沒有發送。有人能幫我嗎?我該如何調試?有沒有日誌文件?

我試着用mailer_transport:參數和傳輸中的gmail:配置gmail,但不起作用。

回答

0

我在我的parameters中使用以下詳細信息,它似乎總是有效。您可能還需要閱讀他們的documentation

mailer_transport: smtp 
mailer_encryption: ssl 
mailer_auth_mode: login 
mailer_host:  smtp.gmail.com 
mailer_user: youremailaddress 
mailer_password: yourpassword 
mailer_port:  465 
相關問題