什么是:配置动作邮件程序时使用的域名符号? [英] What is the :domain symbol referring to when configuring action mailer?

查看:146
本文介绍了什么是:配置动作邮件程序时使用的域名符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  Appname :: Application.configure do 

config.action_mailer.delivery_method =:smtp
#用于Gmail账户的典型smtp_settings
配置.action_mailer.smtp_settings = {
:address => smtp.gmail.com,
:port => 587,
:domain => domain.of.sender.net,
:authentication => 纯
:user_name => spencecooley
:password => 秘密
:enable_starttls_auto => true
}

end

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


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

  2. 我也不知道:enable_starttls_auto => true

更新:



好的,我在文档中发现了这个问题,参考问题2



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

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



更新:
我在文档中找到了这个,但仍然没有理解

:domain - 如果您需要指定HELO域名,您可以在此处执行。



so我想新的问题是:什么是HELO域名?似乎无法找到明确的答案。 HELO 检查。如果您使用的是GMail,则不需要指定。



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

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

I have two questions about configuring action mailer

  1. Do you know what the :domain symbol is referring to? Is it talking about the domain name of the application? Is it talking about the mail server domain? I saw baci.lindsaar.net written in on a few sites that I googled, but I don't know why people are using that particular domain. List item
  2. I also don't know what the :enable_starttls_auto => true is doing

update:

Ok, so I found this in the docs in reference to question 2

:enable_starttls_auto - When set to true, detects if STARTTLS is enabled in your SMTP server and starts to use it

Didn't know what STARTTLS was, so I looked it up here http://en.wikipedia.org/wiki/STARTTLS

update: I found this in the docs, but still don't understand

:domain - If you need to specify a HELO domain, you can do it here.

so I guess the new question is: what is a HELO domain? can't seem to find a clear answer.

解决方案

The :domain key is set up for HELO checking. You don't need to specify this if you're using GMail.

The STARTTLS call starts an encrypted connection with your mail server, which is required to use GMail's SMTP.

这篇关于什么是:配置动作邮件程序时使用的域名符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆