diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-06 15:59:21 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-06 15:59:21 +0300 |
commit | 86ec49add45d95f67fda749758d07a26ee030989 (patch) | |
tree | 1c2009ae71ffddb78538cdd8e608fc795d6f596d /app/mailers/notify.rb | |
parent | 3f2282300d9c97e8c0c1df955bdd13d7ee1dc96e (diff) | |
parent | b4be7aed7711e51becb3be29ed82d6753cc73cc4 (diff) | |
download | gitlab-ce-86ec49add45d95f67fda749758d07a26ee030989.tar.gz |
Merge pull request #8800 from jirutka/email-settings
Allow to configure smtp and sendmail in gitlab.yml
Diffstat (limited to 'app/mailers/notify.rb')
-rw-r--r-- | app/mailers/notify.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index 79fb48b00d3..a9800f7f103 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -17,7 +17,7 @@ class Notify < ActionMailer::Base helper_method :current_user, :can? default from: Proc.new { default_sender_address.format } - default reply_to: Gitlab.config.gitlab.email_reply_to + default reply_to: Gitlab.config.outgoing_emails.reply_to # Just send email with 2 seconds delay def self.delay @@ -50,9 +50,9 @@ class Notify < ActionMailer::Base # The default email address to send emails from def default_sender_address - address = Mail::Address.new(Gitlab.config.gitlab.email_from) - address.display_name = Gitlab.config.gitlab.email_display_name - address + Mail::Address.new(Gitlab.config.outgoing_emails.from).tap do |address| + address.display_name = Gitlab.config.outgoing_emails.display_name + end end def can_send_from_user_email?(sender) |