1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class UserNotifier < ActionMailer::Base
6 include AbstractController::Callbacks
8 default from: Rails.configuration.Users.UserNotifierEmailFrom
10 def account_is_setup(user)
12 if not Rails.configuration.Users.UserNotifierEmailBcc.empty? then
13 @bcc = Rails.configuration.Users.UserNotifierEmailBcc.keys
14 mail(to: user.email, subject: 'Welcome to Arvados - account enabled', bcc: @bcc)
16 mail(to: user.email, subject: 'Welcome to Arvados - account enabled')