Merge branch '17948-test-collection-tool' into main. Closes #17948
[arvados.git] / services / api / app / mailers / user_notifier.rb
index 3d1b91f20eda0b3b75849dd7efca504d9059b080..03000a37308ad287a2b5f75538dd25ab4054a3be 100644 (file)
@@ -9,7 +9,12 @@ class UserNotifier < ActionMailer::Base
 
   def account_is_setup(user)
     @user = user
-    mail(to: user.email, subject: 'Welcome to Arvados - 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