Sha256: df639795db27c551a727ae86207338aee4d4aac5297af6e0ca56d86f59389f62
Contents?: true
Size: 1.09 KB
Versions: 16
Compression:
Stored size: 1.09 KB
Contents
class ForumNotificationMailer < DmCore::SiteMailer helper DmCore::LiquidHelper helper DmCore::UrlHelper helper DmCore::AccountHelper #------------------------------------------------------------------------------ def follower_notification(user, topic, comment_list) account = topic.account @subject = "Commets: #{topic.title}" @recipients = user.email @topic = topic @comment_list = comment_list @topic_link = dm_forum.forum_forum_topic_url(topic.forum.slug, topic.slug, locale: I18n.locale) @forum_link = dm_forum.forum_show_url(topic.forum.slug, locale: I18n.locale) headers = { "Return-Path" => account.preferred_smtp_from_email } mail( from: account.preferred_smtp_from_email, reply_to: account.preferred_smtp_from_email, to: @recipients, subject: @subject, theme: account.account_prefix) do |format| format.text { render "layouts/email_templates/forum_notification.text.erb" } format.html { render "layouts/email_templates/forum_notification.html.erb" } end end end
Version data entries
16 entries across 16 versions & 1 rubygems