Swift Mailer won't use updated settings

时间:2015-10-06 08:33:24

标签: symfony azure swiftmailer

After following this tutorial to deploy my app to Azure, my app is working perfectly fine on most fronts.

However, when I try to send an email, it will never come through. The error log states

[2015-10-06 01:25:58] app.ERROR: Exception occurred while flushing email queue: Connection could not be established with host 127.0.0.1 [An attempt was made to access a socket in a way forbidden by its access permissions.  #10013] [] []

So apparently it is still trying to use the parameters.yml settings that the app had generated in the beginning.

I have however edited the parameters.yml file to point to my SendGrid account, but those settings don't seem to be used. I have already restarted the server and cleared the cache multiple times to no avail.

Any idea what I'm doing wrong?

1 个答案:

答案 0 :(得分:0)

通过php app/console cache:clear清除缓存显然没有清除parameters.yml缓存。

对于其他内容,我不得不通过rm -rf app/cache/*通过Azure的命令行手动删除我的缓存文件夹,这也解决了我的parameters.yml问题。