X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a3787ef83a0538097fb6f802f675be740a241ebc..f170c5a75f22a6db11ca93eed5b0dfc9c65c4270:/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 055fe3ad04..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') + 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