Sha256: 8f40c7e5466ee01f021fe2b66160c0a118956afa9c8ec0a7ef2c1ae45b5a8256
Contents?: true
Size: 641 Bytes
Versions: 7
Compression:
Stored size: 641 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
7 entries across 7 versions & 1 rubygems