gpt4 book ai didi

ruby-on-rails - 山魈发送电子邮件 ruby​​ on rails

转载 作者:数据小太阳 更新时间:2023-10-29 09:03:00 24 4
gpt4 key购买 nike

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

以我的名义邮寄

default from: "info@****.com"

and in the 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

最佳答案

来自 Mandrill KB

If your recipients use Outlook, Hotmail (and other Microsoft webmail services), or Gmail, they may see an indication in the email that it was sent by Mandrill on your behalf instead of just your 'from' name and address. Add SPF and DKIM records to your sending domains to remove the 'on behalf of' or 'via' information.

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

关于ruby-on-rails - 山魈发送电子邮件 ruby​​ on rails,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30746144/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com