【问题标题】:Mandrill send email ruby on railsMandrill 在 Rails 上发送电子邮件 ruby
【发布时间】:2015-08-25 02:29:02
【问题描述】:

我正在使用 mandrill 发送电子邮件,它显示一些电子邮件来自:ma@mail133-28.atl131.mandrillapp.com [mailto:ma@mail133-28.atl131.mandrillapp.com] 代表info@****.com

以我的名义邮寄者

默认来自:“info@****.com”

在 development.rb 中

  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.delivery_method = :letter_opener
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    :address => "smtp.mandrillapp.com",
    :port => 587,
    :domain => 'www.****.com',
    :user_name => '**@**.ca',
    :password => '***',
    :authentication => :plain,
    :enable_starttls_auto => true 
  }

这是为什么呢?我想显示来自:info@****.com 没有这个ma@mail133-28.atl131.mandrillapp.com [mailto:ma@mail133-28.atl131.mandrillapp.com] 代表info@****.com

【问题讨论】:

    标签: ruby-on-rails ruby email actionmailer mandrill


    【解决方案1】:

    来自Mandrill KB

    如果您的收件人使用 Outlook、Hotmail(和其他 Microsoft 网络邮件 服务)或 Gmail,他们可能会在电子邮件中看到它的指示 由 Mandrill 代表您发送,而不仅仅是您的“发件人”姓名 和地址。将 SPF 和 DKIM 记录添加到您的发送域以 删除“代表”或“通过”信息。

    可以在此处找到有关如何执行此操作的说明:https://mandrill.zendesk.com/hc/en-us/articles/205582277-How-do-I-add-DNS-records-for-my-sending-domains-

    【讨论】:

      猜你喜欢
      • 2014-01-28
      • 2016-07-04
      • 2015-04-23
      • 2017-04-30
      • 2014-09-03
      • 2013-06-08
      • 2014-04-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多