1
我有Spree 3.0,Rails 4.2.1,nginx,獨角獸。這裏是大禮包相關的寶石列表Spree 3.0電子郵件沒有被髮送(交付)
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'
嘗試通過配置/環境/ 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與行動梅勒設置使用mailcatcher - 不起作用。 Mailcatcher不會顯示任何電子郵件,無論郵件是否發送(當我按下重發電子郵件或checkot並通過控制檯腳本時,都通過spree admin)。
但無論如何,無論我做什麼(更改,修復)電子郵件都不會發送!不知道該怎麼做,夥計們。 請幫幫我!