Skip to content

Instantly share code, notes, and snippets.

@ii0
Forked from petermanser/_gitlab_config.md
Created December 7, 2015 02:29
Show Gist options
  • Save ii0/22fb9ea6bfebc1aec916 to your computer and use it in GitHub Desktop.
Save ii0/22fb9ea6bfebc1aec916 to your computer and use it in GitHub Desktop.
Gitlab 5.4 - Gmail configuration

Gitlab 5.4 - Gmail configuration

In order to send messages through a Gmail account (also applicable to Google Apps accounts) add the following parts to your config files:

Files:

  • config/environments/production.rb
  • config/gitlab.yml
## Email settings
# Email address used in the "From" field in mails sent by GitLab
email_from: [email protected]
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
:address => 'smtp.gmail.com',
:port => 587,
:domain => 'gmail.com',
:user_name => '[email protected]',
:password => 'password',
:authentication => 'plain',
:enable_starttls_auto => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment