debian-mirror-gitlab/debian/conf/smtp_settings.rb

16 lines
721 B
Ruby
Raw Normal View History

2016-02-10 22:08:01 +05:30
# To enable smtp email delivery for your GitLab instance do the following:
# 1. Rename this file to smtp_settings.rb
# 2. Edit settings inside this file
# 3. Restart GitLab instance
#
# For full list of options and their values see http://api.rubyonrails.org/classes/ActionMailer/Base.html
#
# If you change this file in a Merge Request, please also create a Merge Request on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests
if Rails.env.production?
2016-02-16 12:58:43 +05:30
Rails.application.config.action_mailer.delivery_method = :sendmail
2016-02-10 22:08:01 +05:30
Rails.application.config.action_mailer.default_options = {from: "#{ENV['GITLAB_EMAIL_FROM']}" || "#{Settings.gitlab['email_from']}" || ''}
ActionMailer::Base.sendmail_settings = {}
end