mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Merge branch 'smtp_settings' of /home/git/repositories/gitlab/gitlabhq
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# 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 to smtp_settings.rb
|
||||
# 3. Edit settings inside this file
|
||||
# 4. Restart GitLab instance
|
||||
# 1. Rename this file to smtp_settings.rb
|
||||
# 2. Edit settings inside this file
|
||||
# 3. 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 = {
|
||||
address: "email.server.com",
|
||||
port: 456,
|
||||
|
||||
Reference in New Issue
Block a user