gitlab-org--gitlab-foss/config/initializers/smtp_settings.rb.sample

19 lines
588 B
Text
Raw Normal View History

2013-05-05 05:48:32 -04:00
# 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
2013-05-28 18:13:42 -04:00
# 2. Rename this file to smtp_settings.rb
2013-05-05 05:48:32 -04:00
# 3. Edit settings inside this file
# 4. Restart GitLab instance
#
if Gitlab::Application.config.action_mailer.delivery_method == :smtp
ActionMailer::Base.smtp_settings = {
address: "email.server.com",
port: 456,
user_name: "smtp",
password: "123456",
domain: "gitlab.company.com",
authentication: :login,
enable_starttls_auto: true
}
end