# To enable smtp email delivery for your GitLab instance do the following:
# 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
#
if Rails.env.production?
Gitlab::Application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: "smtp.163.com",
port: 25,
user_name: "user_name",
password: "password",
domain: "163.com",
authentication: :plain,
enable_starttls_auto: true,
# openssl_verify_mode: 'none' //註釋掉這行
}
end