9945: Merge branch 'master' into 9945-make-python-package-dependency-free
[arvados.git] / services / api / app / mailers / profile_notifier.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class ProfileNotifier < ActionMailer::Base
6   default from: Rails.configuration.admin_notifier_email_from
7
8   def profile_created(user, address)
9     @user = user
10     mail(to: address, subject: "Profile created by #{@user.email}")
11   end
12 end