Commit 728f0c20 authored by Marin Jankovski's avatar Marin Jankovski

Add smtp settings override in smtp_settings sample file.

parent 318f96a4
# To enable smtp email delivery for your GitLab instance do next: # To enable smtp email delivery for your GitLab instance do next:
# 1. Change config/environments/production.rb to use smtp # 1. Rename this file to smtp_settings.rb
# config.action_mailer.delivery_method = :smtp # 2. Edit settings inside this file
# 2. Rename this file to smtp_settings.rb # 3. Restart GitLab instance
# 3. Edit settings inside this file
# 4. Restart GitLab instance
# #
if Gitlab::Application.config.action_mailer.delivery_method == :smtp if Rails.env.production? do
Gitlab::Application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = { ActionMailer::Base.smtp_settings = {
address: "email.server.com", address: "email.server.com",
port: 456, port: 456,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment