Sha256: a78fdd397865b64a0f8e6ef057948083a5774fb631595289fb12c50ea0823565
Contents?: true
Size: 600 Bytes
Versions: 7
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true require_dependency 'thredded/topic_email_view' module Thredded class PostMailer < Thredded::BaseMailer def post_notification(post_id, emails) @post = find_record Post, post_id email_details = 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, reply_to: email_details.reply_to, subject: email_details.subject end end end
Version data entries
7 entries across 7 versions & 1 rubygems