Sha256: 314c1665ac2ed2abb5fafe760654e6cb3c149a91faac739d010ec559e6afc084

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true
require_dependency 'thredded/topic_email_view'
module Thredded
  class PrivatePostMailer < Thredded::BaseMailer
    def at_notification(post_id, emails)
      @post                = find_record PrivatePost, post_id
      email_details        = TopicEmailView.new(@post.postable)
      headers['X-SMTPAPI'] = email_details.smtp_api_tag('at_notification')

      mail from:     email_details.no_reply,
           to:       email_details.no_reply,
           bcc:      emails,
           reply_to: email_details.reply_to,
           subject:  email_details.subject
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thredded-0.4.0 app/mailers/thredded/private_post_mailer.rb
thredded-0.3.2 app/mailers/thredded/private_post_mailer.rb
thredded-0.3.1 app/mailers/thredded/private_post_mailer.rb
thredded-0.3.0 app/mailers/thredded/private_post_mailer.rb