summaryrefslogtreecommitdiff
path: root/app/mailers/redstoner_mailer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/redstoner_mailer.rb')
-rw-r--r--app/mailers/redstoner_mailer.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/mailers/redstoner_mailer.rb b/app/mailers/redstoner_mailer.rb
index 1b387f8..f804440 100644
--- a/app/mailers/redstoner_mailer.rb
+++ b/app/mailers/redstoner_mailer.rb
@@ -44,4 +44,10 @@ class RedstonerMailer < ActionMailer::Base
@user = user
mail(to: @user.email, subject: "Email change on Redstoner.com")
end
+
+ def new_message_mail(user, message)
+ @user = user
+ @message = message
+ mail(to: @user.email, subject: "#{message.user_sender.name} sent you a new message.")
+ end
end