Sha256: e2b693eff218d2b138e44a9c8875e32366646570318101a6e75e586d74c2a4ac

Contents?: true

Size: 529 Bytes

Versions: 6

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module Thredded
  class PostMailer < Thredded::BaseMailer
    def post_notification(post_id, emails)
      @post                = find_record Thredded::Post, post_id
      email_details        = Thredded::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

6 entries across 6 versions & 1 rubygems

Version Path
thredded-0.13.2 app/mailers/thredded/post_mailer.rb
thredded-0.13.1 app/mailers/thredded/post_mailer.rb
thredded-0.13.0 app/mailers/thredded/post_mailer.rb
thredded-0.12.4 app/mailers/thredded/post_mailer.rb
thredded-0.12.3 app/mailers/thredded/post_mailer.rb
thredded-0.12.2 app/mailers/thredded/post_mailer.rb