未发送电子邮件重置密码功能[关闭]

未发送电子邮件重置密码功能[关闭]

问题描述:

I have a problem with FOSUSERBUNDLE and the reset password function. The resetting email is not sent in prod mode. (But the registration mail is sent without problems).

I have this error in my app/logs/prod.log but i don't know how to fix it.

[2014-12-21 13:26:34] request.INFO: Matched route "fos_user_resetting_send_email" (parameters: "_controller": "FOS\UserBundle\Controller\ResettingController::sendEmailAction", "_route": "fos_user_resetting_send_email") [] []
[2014-12-21 13:26:34] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2014-12-21 13:26:34] security.DEBUG: Write SecurityContext in the session [] []
[2014-12-21 13:26:35] app.ERROR: Exception occurred while flushing email queue: Expected response code 250 but got code "", with message "" [] []

Can anybody help me please ?

我遇到了FOSUSERBUNDLE和重置密码功能的问题。 重置电子邮件不会以prod模式发送。 (但注册邮件没有问题发送)。 p>

我的app / logs / prod.log中有这个错误,但我不知道如何修复它。 p>

  [2014-12-21 13:26:34] request.INFO:匹配路由“fos_user_resetting_send_email”(参数:“_ control”:“FOS \ UserBundle \ Controller \ ResettingController :: sendEmailAction”  ,“_route”:“fos_user_resetting_send_email”)[] [] 
 [2014-12-21 13:26:34] security.INFO:填充SecurityContext,带有匿名令牌[] [] 
 [2014-12-21 13  :26:34] security.DEBUG:在session [] [] 
 [2014-12-21 13:26:35]中编写SecurityContext app.ERROR:刷新电子邮件队列时发生异常:预期响应代码250但得到代码 “”,带有消息“”[] [] 
  code>  pre> 
 
 

有人可以帮助我吗? p> div>

I solved my problem. It seems this bug happens when configures a part of the parameters. The documentation here explains how to configure independently the two mail sending options, but also how to configure both simultaneously. It's this last point that caused my bug. I had just configured a part of the two options instead of both.

Thank you anyway, and if it can be useful to someone later ...