X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/abc1db31bae1b33ed899a1da4b59f2edc0f5f189..3a9428dd1db2fd393dd90cd3ffc744c0bf45fe28:/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