X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/19ae770973482257117fe8ded5619c3018c4b60f..272ce633588e6e6881d3e27bef4ef6de12555cfe:/services/api/app/mailers/user_notifier.rb diff --git a/services/api/app/mailers/user_notifier.rb b/services/api/app/mailers/user_notifier.rb index 7c96d718cc..03000a3730 100644 --- a/services/api/app/mailers/user_notifier.rb +++ b/services/api/app/mailers/user_notifier.rb @@ -1,11 +1,20 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class UserNotifier < ActionMailer::Base include AbstractController::Callbacks - default from: Rails.configuration.user_notifier_email_from + default from: Rails.configuration.Users.UserNotifierEmailFrom def account_is_setup(user) @user = user - mail(to: user.email, subject: 'Welcome to Curoverse - shell account enabled') + if not Rails.configuration.Users.UserNotifierEmailBcc.empty? then + @bcc = Rails.configuration.Users.UserNotifierEmailBcc.keys + mail(to: user.email, subject: 'Welcome to Arvados - account enabled', bcc: @bcc) + else + mail(to: user.email, subject: 'Welcome to Arvados - account enabled') + end end end