Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
class ThingMailer < ActionMailer::Base | ||
default :from => "hello@#{default_url_options[:host]}" | ||
default :from => "adoptahydrant@cityofboston.gov" | ||
|
||
def reminder_email(thing) | ||
def reminder(thing) | ||
@thing = thing | ||
@user = thing.user | ||
mail({ | ||
:to => thing.user.email, | ||
:from => "reminder@#{default_url_options[:host]}", | ||
:subject => ["Remember to Shovel", thing.name].compact.join(' '), | ||
}) | ||
mail( | ||
{ | ||
:to => thing.user.email, | ||
:subject => ["Remember to shovel", thing.name].compact.join(' '), | ||
} | ||
) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Hello <%= @user.name.split.first %>, | ||
|
||
Did you remember to shovel out the fire hydrant you adopted at <%= @thing.street_address %>? If not, please shovel your hydrant as soon as possible! | ||
|
||
If you've already shoveled, thank you for serving your city! | ||
|
||
The Boston Fire Department |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters