Sha256: a243cf13c510a043be8a5adf1a1d124213a4706f1fc66aba471eb97403bc6f0d
Contents?: true
Size: 707 Bytes
Versions: 36
Compression:
Stored size: 707 Bytes
Contents
# frozen_string_literal: true module Thredded class PostMailer < Thredded::BaseMailer def post_notification(post_id, emails) @post = find_record Thredded::Post, post_id email_details = Thredded::TopicEmailView.new(@post.postable) headers['X-SMTPAPI'] = email_details.smtp_api_tag('post_notification') mail from: email_details.no_reply, to: email_details.no_reply, bcc: emails, subject: [ Thredded.email_outgoing_prefix, t('thredded.emails.post_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