Class: Thredded::PrivateTopicMailer
- Inherits:
-
BaseMailer
- Object
- ActionMailer::Base
- BaseMailer
- Thredded::PrivateTopicMailer
- Defined in:
- app/mailers/thredded/private_topic_mailer.rb
Instance Method Summary collapse
Instance Method Details
#message_notification(private_topic_id, emails) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/mailers/thredded/private_topic_mailer.rb', line 5 def (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, reply_to: email_details.reply_to, subject: email_details.subject end |