diff options
Diffstat (limited to 'app/mailers/emails/profile.rb')
-rw-r--r-- | app/mailers/emails/profile.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/mailers/emails/profile.rb b/app/mailers/emails/profile.rb index 28e51ba311b..31fcc7c15cb 100644 --- a/app/mailers/emails/profile.rb +++ b/app/mailers/emails/profile.rb @@ -141,6 +141,17 @@ module Emails end end + def new_email_address_added_email(user, email) + return unless user + + @user = user + @email = email + + Gitlab::I18n.with_locale(@user.preferred_language) do + mail(to: @user.notification_email_or_default, subject: subject(_("New email address added"))) + end + end + private def profile_email_with_layout(to:, subject:, layout: 'mailer') |