diff options
author | Philip Arndt <parndt@gmail.com> | 2010-11-15 17:39:33 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-11-15 17:39:52 +1300 |
commit | 5b55dc2f375cac1a78bc70150a9473a74271ffdd (patch) | |
tree | 6e8c3320ec2cbe40644390c79a776738eb572542 /app/mailers | |
parent | 426c0d913f62de7377d5b7dd3172f2e7117cfaec (diff) | |
download | refinerycms-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.rb | 11 |
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 |