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
:enable_starttls_auto => true
is doingupdate:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With