aboutsummaryrefslogtreecommitdiffstats
path: root/app/mailers/blog/comment_mailer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/blog/comment_mailer.rb')
-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