mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
11 lines
306 B
Ruby
11 lines
306 B
Ruby
|
require_dependency 'email/message_builder'
|
||
|
|
||
|
class PendingQueuedPostsMailer < ActionMailer::Base
|
||
|
include Email::BuildEmailHelper
|
||
|
|
||
|
def notify(opts={})
|
||
|
return unless SiteSetting.contact_email
|
||
|
build_email(SiteSetting.contact_email, template: 'queued_posts_reminder', count: opts[:count])
|
||
|
end
|
||
|
end
|