Sha256: 3af3f3b6c892cb73b2f7a076ed5926e20437e3d55d6dcf86ec314cacdfe0711b
Contents?: true
Size: 528 Bytes
Versions: 10
Compression:
Stored size: 528 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: email_details.subject end end end
Version data entries
10 entries across 10 versions & 1 rubygems