adopt-a-hydrant/app/mailers/hydrant_mailer.rb

14 lines
369 B
Ruby
Raw Normal View History

class HydrantMailer < ActionMailer::Base
default :from => "hello@#{default_url_options[:host]}"
def reminder_email(hydrant)
@hydrant = hydrant
@user = hydrant.user
2011-06-25 09:53:37 +00:00
mail({
:to => hydrant.user.email,
:from => "reminder@#{default_url_options[:host]}",
:subject => ["Remember to Shovel", hydrant.name].compact.join(' '),
2011-06-25 09:53:37 +00:00
})
end
end