简体   繁体   English

EOFError - 使用 Zoho 邮件时到达文件末尾

[英]EOFError - end of file reached when using Zoho mail

I am using Zoho mail to send email from my Rails application.我正在使用 Zoho 邮件从我的 Rails 应用程序发送 email。 But I am getting EOFError - end of file reached error when trying to send email.但是我收到EOFError - end of file reached错误。 Below is my configuration for development.rb下面是我对development.rb的配置

  config.action_mailer.raise_delivery_errors = true

  config.action_mailer.default_url_options = { host: 'localhost:3000' }
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    :address              => "smtp.zoho.com",
    :port                 => 465,
    :user_name            => 'info@mydomainname.com',
    :password             => 'zoho_mail_password',
    :authentication       => :login,
    :ssl                  => true,
    :tls                  => true,
    :enable_starttls_auto => true
  } 

Here is error from my log file这是我的日志文件中的错误

Completed 500 Internal Server Error in 7481ms (ActiveRecord: 2.1ms | Allocations: 44097)

EOFError - end of file reached:
  app/controllers/users_controller.rb:19:in `create'

Please help.请帮忙。

I managed to solve the problem.我设法解决了这个问题。 I had to set the default address in application_mailer.rb file我必须在application_mailer.rb文件中设置默认地址

default from: 'Business Name <info@mydomainname.com>'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 保存设计用户时,Rails EOFError(到达文件末尾) - Rails EOFError (end of file reached) when saving a devise user DelayedJobAdapter 因 EOFError 失败:已到达文件结尾 - DelayedJobAdapter fails with EOFError: end of file reached 文件结尾达到EOFError(Databasedotcom + Rails + Heroku) - end of file reached EOFError (Databasedotcom + Rails + Heroku) EOFError:文件结尾与Net :: HTTP达成问题 - EOFError: end of file reached issue with Net::HTTP savon HTTPI POST EOFError:已到达文件末尾 - savon HTTPI POST EOFError: end of file reached Ruby on Rails 中带有 http.request 的 EOFError(到达文件末尾) - EOFError (end of file reached) in Ruby on Rails with http.request EOFError:文件结尾达到错误,然后在Heroku中与工作程序发生内存错误 - EOFError: end of file reached error and then memory error on heroku with workers Rails 4:EOFError:仅在开发中的任何电子邮件后到达文件结尾 - Rails 4: EOFError: end of file reached following any email in DEVELOPMENT only EOFError:通过Savon ruby​​客户端调用SOAP API的文件末尾 - EOFError: end of file reached calling a SOAP API via Savon ruby client 通过SSL发布UTF-8时,在HEROKU上出现“ EOFError:文件已到达结尾” - 'EOFError: end of file reached' on HEROKU while posting UTF-8 via SSL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM