【发布时间】:2015-05-22 20:50:05
【问题描述】:
我有 Spree 3.0、rails 4.2.1、nginx、独角兽。这是与狂欢相关的宝石列表
gem 'spree', github:'spree/spree', branch: '3-0-stable'
gem 'spree_i18n', github: 'spree-contrib/spree_i18n', branch: '3-0-stable'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
gem 'spree_static_content', github: 'spree/spree_static_content', branch: '3-0-stable'
gem "spree_product_zoom", git: "git://github.com/spree/spree_product_zoom.git", branch: '3-0-stable'
尝试通过 config/environments/production.rb 使用 YandexMail 或 GoogleMail 设置 ActionMailer。以下是关于 Yandex.Mail 的内容
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.yandex.ru",
port: 465,
domain: 'mydomain',
user_name: 'myemail',
password: 'mypass',
authentication: "plain",
enable_starttls_auto: true }
并且不发送电子邮件(在结帐/再次发送电子邮件订单期间)。生产中没有错误日志,但它是“上游超时”错误。并且增加代理超时没有帮助。 在我的生产日志中显示没关系
D, [2015-05-17T18:52:50.964229 #4836] DEBUG -- : [ActiveJob] [ActionMailer::DeliveryJob] [54f73692-30bc-4354-9a6f-bb29fe6d54e2]
Spree::OrderMailer#confirm_email: processed outbound mail in 1908.9ms
尝试使用带有 spree_mail_settings 的 mailcatcher 和带有 Action Mailer 设置的 mailcatcher - 不起作用。无论是否发送邮件,Mailcatcher 都不会显示任何电子邮件(当我按下重新发送电子邮件或检查时通过 spree admin 以及通过控制台脚本)。
但无论如何,无论我做什么(更改、修复)电子邮件都不会发送!不知道还能做什么,伙计们。 请帮帮我!
【问题讨论】:
标签: ruby-on-rails email spree