邮件中的邮件有问题

时间:2021-08-24 15:17:08

I configured mailer in my rails app. And send test email from localhost and everything works fine. But if I try to edit my mailer view, mailer dont work(Timeout::Error at ... execution expired). And even restarting the server does not solve the problem.

我在rails应用程序中配置了邮件程序。并从localhost发送测试电子邮件,一切正常。但是,如果我尝试编辑我的邮件程序视图,邮件程序就不起作用(Timeout :: Error at ... execution expired)。甚至重新启动服务器也无法解决问题。

The problem is solved only reboot. But after reboot it all over again. Everything work fine but one view correction and only reboot again.

只有重启才能解决问题。但重新启动后重新开始。一切正常,但一次视图更正,只能重新启动。

Mailer config:

config.action_mailer.smtp_settings = {
  :address              => "smtp.yandex.ru",
  :port                 => 587,
  :domain               => "yandex.ru",
  :user_name            => "user@name.com",
  :password             => "password",
  :authentication       => :plain,
  :enable_starttls_auto => true }

config.action_mailer.default_url_options = {
  :host => "localhost:3000" }

Ubuntu 12.04

Ruby 1.9.3-p327

Rails 3.2.8

1 个解决方案

#1


0  

It looks like you may have some firewall related issues. To check that - try testing email server connection throuh telnet- http://weblogs.asp.net/owscott/archive/2005/03/15/Troubleshooting-email%5F2C00%5F-the-Telnet-way.aspx

看起来您可能遇到一些与防火墙相关的问题。要检查一下 - 尝试通过telnet测试电子邮件服务器连接 - http://weblogs.asp.net/owscott/archive/2005/03/15/Troubleshooting-email%5F2C00%5F-the-Telnet-way.aspx

#1


0  

It looks like you may have some firewall related issues. To check that - try testing email server connection throuh telnet- http://weblogs.asp.net/owscott/archive/2005/03/15/Troubleshooting-email%5F2C00%5F-the-Telnet-way.aspx

看起来您可能遇到一些与防火墙相关的问题。要检查一下 - 尝试通过telnet测试电子邮件服务器连接 - http://weblogs.asp.net/owscott/archive/2005/03/15/Troubleshooting-email%5F2C00%5F-the-Telnet-way.aspx