Skip to content

Instantly share code, notes, and snippets.

@SpencerCooley
Created December 12, 2011 16:13
Show Gist options
  • Save SpencerCooley/1468054 to your computer and use it in GitHub Desktop.
Save SpencerCooley/1468054 to your computer and use it in GitHub Desktop.
class Notifier < ActionMailer::Base
default :from => "Sam Ruby <[email protected]>"
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
# en.notifier.order_recieved.subject
#
def order_recieved
@greeting = "Hi"
mail :to => "[email protected]"
end
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
# en.notifier.order_shipped.subject
#
def order_shipped
@greeting = "Hi"
mail :to => "[email protected]"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment