Sha256: 333fca8c379d931787c4b6f19245703402862e7aabdd59ba2817d4c2376f39fc

Contents?: true

Size: 731 Bytes

Versions: 36

Compression:

Stored size: 731 Bytes

Contents

# frozen_string_literal: true

module Thredded
  class PrivateTopicMailer < Thredded::BaseMailer
    def message_notification(post_id, emails)
      @post = find_record Thredded::PrivatePost, post_id
      email_details = Thredded::TopicEmailView.new(@post.postable)
      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: [
             Thredded.email_outgoing_prefix,
             t('thredded.emails.message_notification.subject',
               user: @post.user.thredded_display_name,
               topic_title: @post.postable.title)
           ].compact.join
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
thredded-1.1.0 app/mailers/thredded/private_topic_mailer.rb
thredded-1.0.1 app/mailers/thredded/private_topic_mailer.rb
thredded-1.0.0 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.16 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.15 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.14 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.13 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.12 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.11 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.10 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.9 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.8 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.7 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.6 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.5 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.4 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.3 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.1 app/mailers/thredded/private_topic_mailer.rb
thredded-0.16.0 app/mailers/thredded/private_topic_mailer.rb
thredded-0.15.5 app/mailers/thredded/private_topic_mailer.rb