Class: Thredded::PostMailer
- Inherits:
-
BaseMailer
- Object
- ActionMailer::Base
- BaseMailer
- Thredded::PostMailer
- Defined in:
- app/mailers/thredded/post_mailer.rb
Instance Method Summary collapse
Instance Method Details
#post_notification(post_id, emails) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/mailers/thredded/post_mailer.rb', line 5 def post_notification(post_id, emails) @post = find_record Post, post_id email_details = TopicEmailView.new(@post.postable) headers['X-SMTPAPI'] = email_details.smtp_api_tag('post_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 |