Add ActionMailer to inform admins about new screenshots
This version only informs Christoph as a test
This commit is contained in:
parent
ae597a6235
commit
1f9187e35c
9 changed files with 55 additions and 1 deletions
9
app/mailers/admin_mailer.rb
Normal file
9
app/mailers/admin_mailer.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class AdminMailer < ApplicationMailer
|
||||
default from: 'notifications@mentors.debian.net'
|
||||
|
||||
def new_uploads_email
|
||||
@package = params[:package]
|
||||
#@url = 'http://example.com/login'
|
||||
mail(to: 'email@christoph-haas.de', subject: 'Please moderate new screenshot uploads')
|
||||
end
|
||||
end
|
||||
5
app/mailers/application_mailer.rb
Normal file
5
app/mailers/application_mailer.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class ApplicationMailer < ActionMailer::Base
|
||||
default from: 'from@example.com'
|
||||
layout 'mailer'
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue