gpt4 book ai didi

ruby-on-rails - 什么是 :domain symbol referring to when configuring action mailer?

转载 作者:数据小太阳 更新时间:2023-10-29 06:50:02 25 4
gpt4 key购买 nike

Appname::Application.configure do 

config.action_mailer.delivery_method = :smtp
#typical smtp_settings for gmail account
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "domain.of.sender.net",
:authentication => "plain"
:user_name => "spencecooley"
:password => "secret"
:enable_starttls_auto => true
}

end

我有两个关于配置 action mailer 的问题

  1. 你知道 :domain 符号指的是什么吗?它是在谈论应用程序的域名吗?它是在谈论邮件服务器域吗?我在我用谷歌搜索的几个网站上看到了 baci.lindsaar.net,但我不知道为什么人们使用那个特定的域。列表项
  2. 我也不知道 :enable_starttls_auto => true 在做什么

更新:

好的,所以我在引用问题 2 的文档中找到了这个

:enable_starttls_auto - 当设置为 true 时,检测您的 SMTP 服务器是否启用了 STARTTLS 并开始使用它

不知道 STARTTLS 是什么,所以我在这里查找 http://en.wikipedia.org/wiki/STARTTLS

更新:我在文档中找到了这个,但还是不明白

:domain - 如果您需要指定一个 HELO 域,您可以在这里指定。

所以我想新的问题是:什么是 HELO 域?似乎找不到明确的答案。

最佳答案

:domain 键设置为 HELO checking .如果您使用的是 GMail,则无需指定此项。

STARTTLS 调用启动与您的邮件服务器的加密连接,这是使用 GMail 的 SMTP 所必需的。

关于ruby-on-rails - 什么是 :domain symbol referring to when configuring action mailer?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8439381/

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