Sha256: d3c0e11b31419a4ae2793ad36569761e0ecd6278a6424c723ac786464581a4a6

Contents?: true

Size: 642 Bytes

Versions: 6

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true

module Thredded
  class PrivateTopicMailer < Thredded::BaseMailer
    def message_notification(private_topic_id, post_id, emails)
      @topic               = find_record Thredded::PrivateTopic, private_topic_id
      @post                = find_record Thredded::PrivatePost, post_id
      email_details        = Thredded::TopicEmailView.new(@topic)
      headers['X-SMTPAPI'] = email_details.smtp_api_tag('private_topic_mailer')

      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/private_topic_mailer.rb
thredded-0.13.1 app/mailers/thredded/private_topic_mailer.rb
thredded-0.13.0 app/mailers/thredded/private_topic_mailer.rb
thredded-0.12.4 app/mailers/thredded/private_topic_mailer.rb
thredded-0.12.3 app/mailers/thredded/private_topic_mailer.rb
thredded-0.12.2 app/mailers/thredded/private_topic_mailer.rb