Spree 3.0 电子邮件未发送(已送达)
Spree 3.0 emails are not being sent (delivered)
我有 Spree 3.0,rails 4.2.1,nginx,独角兽。这是与大礼包相关的 gem 列表
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 }
并且不发送电子邮件(再次 checkout/sending 电子邮件订购期间)。生产中没有错误日志,但它是“上游超时”错误。并且增加代理超时没有帮助。
在我的生产日志中它显示没问题
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
尝试将 mailcatcher 与 spree_mail_settings 一起使用,并将 mailcatcher 与 Action Mailer 设置一起使用 - 不起作用。 Mailcatcher 不显示任何电子邮件,无论邮件是否发送(当我按下重新发送电子邮件或 checkot 时通过 spree admin 以及通过控制台脚本)。
但无论如何,无论我做什么(更改、修复)都不会发送电子邮件!不知道还能做什么,伙计们。 请帮帮我!
我自己发现的问题。必须打开 stl、ttl
config.action_mailer.smtp_settings = {
address: "smtp.yandex.ru",
port: 465,
domain: 'mydomain',
user_name: 'myemail',
password: 'mypass',
authentication: :login,
ssl: true,
enable_starttls_auto: true,
tls: true }
我猜我之前看到的教程是旧版本Rails并且盒子里没有tls支持
我有 Spree 3.0,rails 4.2.1,nginx,独角兽。这是与大礼包相关的 gem 列表
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 }
并且不发送电子邮件(再次 checkout/sending 电子邮件订购期间)。生产中没有错误日志,但它是“上游超时”错误。并且增加代理超时没有帮助。 在我的生产日志中它显示没问题
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
尝试将 mailcatcher 与 spree_mail_settings 一起使用,并将 mailcatcher 与 Action Mailer 设置一起使用 - 不起作用。 Mailcatcher 不显示任何电子邮件,无论邮件是否发送(当我按下重新发送电子邮件或 checkot 时通过 spree admin 以及通过控制台脚本)。
但无论如何,无论我做什么(更改、修复)都不会发送电子邮件!不知道还能做什么,伙计们。 请帮帮我!
我自己发现的问题。必须打开 stl、ttl
config.action_mailer.smtp_settings = {
address: "smtp.yandex.ru",
port: 465,
domain: 'mydomain',
user_name: 'myemail',
password: 'mypass',
authentication: :login,
ssl: true,
enable_starttls_auto: true,
tls: true }
我猜我之前看到的教程是旧版本Rails并且盒子里没有tls支持