Class: Thredded::PrivatePostMailer
- Inherits:
-
BaseMailer
- Object
- ActionMailer::Base
- BaseMailer
- Thredded::PrivatePostMailer
- Defined in:
- app/mailers/thredded/private_post_mailer.rb
Instance Method Summary collapse
Instance Method Details
#at_notification(post_id, emails) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/mailers/thredded/private_post_mailer.rb', line 3 def at_notification(post_id, emails) @post = PrivatePost.find(post_id) email_details = TopicEmailDecorator.new(@post.postable) headers['X-SMTPAPI'] = email_details.smtp_api_tag('at_notification') mail from: email_details.no_reply, to: email_details.no_reply, bcc: emails, reply_to: email_details.reply_to, subject: email_details.subject end |