diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 4b3c71f4..8cb5eed1 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -11,4 +11,9 @@ class UserMailer < ActionMailer::Base @reset_password_url = reset_password_internal_user_url(user, token: user.reset_password_token) mail(subject: t('mailers.user_mailer.reset_password.subject'), to: user.email) end + + def got_new_comment(comment, user, commenting_user) + @commenting_user = commenting_user + mail(subject: t('mailers.user_mailer.got_new_comment.subject'), to: user.email) + end end diff --git a/app/views/user_mailer/got_new_comment.slim b/app/views/user_mailer/got_new_comment.slim new file mode 100644 index 00000000..3b8afa5b --- /dev/null +++ b/app/views/user_mailer/got_new_comment.slim @@ -0,0 +1 @@ +== t('mailers.user_mailer.activation_needed.body', link: link_to(@activation_url, @activation_url))