Last active
December 25, 2015 08:58
-
-
Save hutusi/6950294 to your computer and use it in GitHub Desktop.
GitLab 6.1 email (smtp) configuration.
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
# To enable smtp email delivery for your GitLab instance do next: | |
# 1. Change config/environments/production.rb to use smtp | |
# config.action_mailer.delivery_method = :smtp | |
# 2. Rename this file (config/initializers/smtp_settings.rb) to smtp_settings.rb | |
# 3. Edit settings inside this file | |
# 4. Restart GitLab instance | |
# | |
if Gitlab::Application.config.action_mailer.delivery_method == :smtp | |
ActionMailer::Base.smtp_settings = { | |
address: "smtp.gmail.com", | |
port: 587, | |
user_name: "[email protected]", | |
password: "yourpassword", | |
domain: "gmail.com", | |
authentication: :plain, | |
enable_starttls_auto: true | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment