aboutsummaryrefslogtreecommitdiffstats
path: root/app/mailers
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-11-15 17:39:33 +1300
committerPhilip Arndt <parndt@gmail.com>2010-11-15 17:39:52 +1300
commit5b55dc2f375cac1a78bc70150a9473a74271ffdd (patch)
tree6e8c3320ec2cbe40644390c79a776738eb572542 /app/mailers
parent426c0d913f62de7377d5b7dd3172f2e7117cfaec (diff)
downloadrefinerycms-blog-5b55dc2f375cac1a78bc70150a9473a74271ffdd.tar.gz
refinerycms-blog-5b55dc2f375cac1a78bc70150a9473a74271ffdd.tar.bz2
refinerycms-blog-5b55dc2f375cac1a78bc70150a9473a74271ffdd.zip
Added comment notifications.
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/blog/comment_mailer.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/mailers/blog/comment_mailer.rb b/app/mailers/blog/comment_mailer.rb
new file mode 100644
index 0000000..3e4c76d
--- /dev/null
+++ b/app/mailers/blog/comment_mailer.rb
@@ -0,0 +1,11 @@
+class Blog::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