Sha256: 7d8e864a99772bcd04d6a87bc40480bafa9968e37113a3e006d2daea1106b199
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true require_dependency 'thredded/topic_email_view' module Thredded class PostMailer < Thredded::BaseMailer 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, subject: email_details.subject end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thredded-0.8.4 | app/mailers/thredded/post_mailer.rb |
thredded-0.8.2 | app/mailers/thredded/post_mailer.rb |