Adding door alert emails (test mode) and adjusting door log graph view
This commit is contained in:
12
app/mailers/door_mailer.rb
Executable file
12
app/mailers/door_mailer.rb
Executable file
@@ -0,0 +1,12 @@
|
||||
class DoorMailer < ActionMailer::Base
|
||||
default :from => "no-reply@heatsynclabs.org"
|
||||
|
||||
def alert(status)
|
||||
@url = "http://members.heatsynclabs.org"
|
||||
@status = status
|
||||
|
||||
mail(:to => 'will@heatsynclabs.org',
|
||||
:subject => "HSL Doors")
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user