Adding door alert emails (test mode) and adjusting door log graph view

This commit is contained in:
2014-09-04 19:24:33 -07:00
parent 1d6699ae9f
commit 3ce0d3c45a
5 changed files with 44 additions and 5 deletions

12
app/mailers/door_mailer.rb Executable file
View 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