aboutsummaryrefslogtreecommitdiffstats
path: root/app/mailers/refinery/blog
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/refinery/blog')
-rw-r--r--app/mailers/refinery/blog/comment_mailer.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/mailers/refinery/blog/comment_mailer.rb b/app/mailers/refinery/blog/comment_mailer.rb
new file mode 100644
index 0000000..f36ea29
--- /dev/null
+++ b/app/mailers/refinery/blog/comment_mailer.rb
@@ -0,0 +1,15 @@
+module Refinery
+ module Blog
+ class CommentMailer < ActionMailer::Base
+
+ def notification(comment, request)
+ subject BlogComment::Notification.subject
+ recipients BlogComment::Notification.recipients
+ from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
+ sent_on Time.now
+ @comment = comment
+ end
+
+ end
+ end
+end