Skip to content

Instantly share code, notes, and snippets.

@hidenowt
Created February 28, 2009 02:43
Show Gist options
  • Save hidenowt/71843 to your computer and use it in GitHub Desktop.
Save hidenowt/71843 to your computer and use it in GitHub Desktop.
# /config/environment.rb
# código
Rails::Initializer.run do |config|
# código
ActionMailer::Base.delivery_method = :smtp
#Coloquei aqui as configurações do servidor de email imap.
ActionMailer::Base.smtp_settings = {
:tls => true,
:address => "smtp.gmail.com",
:port => "587",
:domain => "YOURDOMAIN",
:authentication => :plain, # pode usar também :login
:user_name => "GOOGLEUSERNAME",
:password => "GOOGLEPASSWORD"
}
# código
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment