我正在使用rails,开信刀和一些ruby服务对象制作电子邮件功能。电子邮件功能在几天前工作正常,但现在我收到Net::OpenTimeout (execution expired):
错误。
这是我的development.rb
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :letter_opener
config.action_mailer.perform_deliveries = false
的Gemfile
gem "letter_opener", :group => :development
在发送电子邮件后,我会检查我的控制台并查看
ReportCardMailer#report_card_to: processed outbound mail in 37.5ms
Sent mail to email (30006.4ms)
Date: Fri, 22 Jan 2016 16:29:49 -0800
From: reports@company_name.com
To: user_email@gmail.com
Message-ID: <56a2c97de0163_48f43ff30f1568e0200d8@MacBook-Pro-2.local.mail>
Subject: Test
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
因此它似乎正在发送电子邮件,但出于某种原因,在我看到它之前超时我的错误;
Net::OpenTimeout in CurriculumsController#edit_all
execution expired
如果有任何人在电子邮件中遇到与电子邮件相关的相同错误,我很乐意听到您对如何解决此问题的任何建议