Merge branch '15430-fts-operator-removal' into main. Closes #15430
[arvados.git] / services / api / app / mailers / user_notifier.rb
index 35a19b136cc3298892a550d55c800bdcbda48657..03000a37308ad287a2b5f75538dd25ab4054a3be 100644 (file)
@@ -5,11 +5,16 @@
 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