Sha256: 8d2b20c402760955d5cac5f0ad3f4bc9f6249cbf36b494a3ca77cd67541d7a47
Contents?: true
Size: 628 Bytes
Versions: 10
Compression:
Stored size: 628 Bytes
Contents
module Thredded class TopicMailer < ActionMailer::Base def message_notification(topic_id, emails) @topic = Topic.find(topic_id) headers['X-SMTPAPI'] = %Q{{"category": ["thredded_#{@topic.messageboard.name}","at_notification"]}} mail from: no_reply, to: no_reply, bcc: emails, reply_to: reply_to, subject: subject end private def subject "#{Thredded.email_outgoing_prefix} #{@topic.title}" end def reply_to "#{@topic.hash_id}@#{Thredded.email_incoming_host}" end def no_reply Thredded.email_from end end end
Version data entries
10 entries across 10 versions & 1 rubygems