Class: Blog::CommentMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Blog::CommentMailer
- Defined in:
- app/mailers/blog/comment_mailer.rb
Instance Method Summary collapse
Instance Method Details
#notification(comment, request) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/mailers/blog/comment_mailer.rb', line 3 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 |