discourse/app/mailers/pending_queued_posts_mailer.rb

11 lines
308 B
Ruby
Raw Normal View History

require_dependency 'email/message_builder'
class PendingQueuedPostsMailer < ActionMailer::Base
include Email::BuildEmailHelper
2017-07-27 20:20:09 -05:00
def notify(opts = {})
return unless SiteSetting.contact_email
build_email(SiteSetting.contact_email, template: 'queued_posts_reminder', count: opts[:count])
end
end