Created
August 2, 2011 12:28
-
-
Save adilsoncarvalho/1120087 to your computer and use it in GitHub Desktop.
Configuring Redmine to use Gmail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Setting up Action Mailer to consume Gmail | |
# | |
# I've got this on an e-mail from Tiago Cunha on rails-br group at googlegroups.com | |
# | |
config.action_mailer.default_url_options = { :host => 'localhost:3000' } | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.default_content_type = "text/html" | |
config.action_mailer.raise_delivery_errors = true | |
config.action_mailer.smtp_settings = { | |
:address => "smtp.gmail.com", | |
:port => 25, # only use 587 if you don't have a firewall blocking it | |
:domain => "mail.google.com", | |
:user_name => "your_mail_address@gmail.com", | |
:password => 'your password' | |
} | |
# | |
# Oseias Ferreira on the same mailing suggested the following | |
# steps before looking for more documentation :) | |
# | |
# Don't forget to check if the firewall is allowing you to | |
# connect to the mail server address | |
# | |
# Inside your network try this: | |
# | |
# telnet smtp.gmail.com 25 | |
# telnet smtp.gmail.com 465 | |
# telnet smtp.gamil.com 587 | |
# | |
# You should see something like ... | |
# | |
# 220 mx.google.com ESMTP bla-bla. | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment