mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: notify by email when there are posts from new users waiting to be reviewed
This commit is contained in:
10
app/mailers/pending_queued_posts_mailer.rb
Normal file
10
app/mailers/pending_queued_posts_mailer.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user