Sha256: 6476ab0a30a69c10296a64847deb7833676687af33c22da155e1b556df46f14b

Contents?: true

Size: 560 Bytes

Versions: 3

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true
module Thredded
  class PrivateTopicMailer < Thredded::BaseMailer
    def message_notification(private_topic_id, emails)
      @topic               = find_record Thredded::PrivateTopic, private_topic_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

3 entries across 3 versions & 1 rubygems

Version Path
thredded-0.9.3 app/mailers/thredded/private_topic_mailer.rb
thredded-0.9.2 app/mailers/thredded/private_topic_mailer.rb
thredded-0.9.1 app/mailers/thredded/private_topic_mailer.rb