创建新对话时出现Ruby用户消息传递错误

时间:2017-01-29 13:41:17

标签: ruby

在用户之间创建新对话时,我的Ruby应用程序突然出错。它一直工作正常我相信,直到我将imagemagick和AWS S3 gems集成到我的应用程序。此问题仅在开发中,我的heroku版本不受此影响。这是错误:

  

ConversationsController中的Net :: SMTPFatalError #create

     

不允许550个未经身份验证的发件人

conversation = current_user .... line在我的会话控制器中突出显示行:

def create
  recipients = User.find_by(id: params[:recipient_id])
  conversation = current_user.send_message(recipients, conversation_params[:body], conversation_params[:subject]).conversation
  flash[:success] = "Your message was successfully sent!"
  redirect_to conversation_path(conversation)
end

同样,它在推送到Heroku时工作​​正常,此错误仅出现在开发环境中。有什么建议吗?

0 个答案:

没有答案