Sha256: 8558ddd55c2ba6ccc5add8c52d3681f72ccfc721bbd77d71513405bfa35aecdd
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true require_dependency 'thredded/topic_email_view' module Thredded class PrivateTopicMailer < Thredded::BaseMailer def message_notification(private_topic_id, emails) @topic = find_record PrivateTopic, private_topic_id email_details = 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thredded-0.8.4 | app/mailers/thredded/private_topic_mailer.rb |
thredded-0.8.2 | app/mailers/thredded/private_topic_mailer.rb |