Commit 493b5ff011d5788f669adabf978a40b49b8cf6a3

Authored by Dmitriy Zaporozhets
1 parent ca244c35

Add smtp_settings sample

Showing 1 changed file with 18 additions and 0 deletions   Show diff stats
config/initializers/smtp_settings.rb.sample 0 → 100644
... ... @@ -0,0 +1,18 @@
  1 +# To enable smtp email delivery for your GitLab instance do next:
  2 +# 1. Change config/environments/production.rb to use smtp
  3 +# config.action_mailer.delivery_method = :smtp
  4 +# 2. Rename this file to smpt_settings.rb
  5 +# 3. Edit settings inside this file
  6 +# 4. Restart GitLab instance
  7 +#
  8 +if Gitlab::Application.config.action_mailer.delivery_method == :smtp
  9 + ActionMailer::Base.smtp_settings = {
  10 + address: "email.server.com",
  11 + port: 456,
  12 + user_name: "smtp",
  13 + password: "123456",
  14 + domain: "gitlab.company.com",
  15 + authentication: :login,
  16 + enable_starttls_auto: true
  17 + }
  18 +end
... ...