【问题标题】:Rails 3.2 email sent via smtp is flagged as unencrypted by gmail通过 smtp 发送的 Rails 3.2 电子邮件被 gmail 标记为未加密
【发布时间】:2016-07-02 02:21:13
【问题描述】:

我想问一下我错过了什么,为什么我的电子邮件被 Gmail 标记为未加密。我的项目使用 Hostmonster.com 无回复帐户发送电子邮件。

Rails smtp 设置:

config.action_mailer.default_url_options = { host: APP_CONFIG[:host], port: APP_CONFIG[:port], protocol: "https" }
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp 
config.action_mailer.smtp_settings = {
    :address                => "host289.hostmonster.com",
    :port                   => 465,
    :domain                 => APP_CONFIG[:smtp][:domain],
    :user_name              => APP_CONFIG[:smtp][:user_name],
    :password               => APP_CONFIG[:smtp][:password],
    :authentication         => "plain",
    :enable_starttls_auto => true,
    :ssl => true
}

Hostmonster 面板: enter image description here

该项目已在 HTTPS 中。我不知道是我最终导致了 Gmail 未加密问题还是在 hostmonster 上。 enter image description here

【问题讨论】:

  • 我就同样的问题与 HostMonster 通了电话。 @Borama 是对的,这是他们正在解决的问题。他们不会给出修复的 eta 并且没有支持票可遵循或任何东西,但他们向我保证他们会修复它......最终。 #fingerscrossed

标签: ruby-on-rails ruby-on-rails-3.2 smtp gmail actionmailer


【解决方案1】:

我相信这与与 GMail 服务器通信时托管 SMTP 服务器的配置有关。您正在通过加密的 SMTP 连接将电子邮件发送到 hostmonster SMTP 服务器,这是正确的。但是主机怪物也有责任进一步发送加密的邮件,而他们可能不会这样做。

我会就这个问题联系 hostmonster 的支持人员,即询问他们在从服务器发送外发电子邮件时是否使用加密通信。

【讨论】:

  • 谢谢伙计。我已经联系了hostmonster,你是对的。他们目前正在努力。
猜你喜欢
  • 2014-06-27
  • 2017-05-12
  • 2020-02-21
  • 1970-01-01
  • 2014-01-04
  • 2016-01-16
  • 2015-10-09
  • 2011-08-11
  • 2022-08-14
相关资源
最近更新 更多