mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
16 lines
375 B
Ruby
16 lines
375 B
Ruby
class <%= class_name %> < ActionMailer::Base
|
|
default :from => "from@example.com"
|
|
<% for action in actions -%>
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.actionmailer.<%= file_name %>.<%= action %>.subject
|
|
#
|
|
def <%= action %>
|
|
@greeting = "Hi"
|
|
|
|
mail :to => "to@example.org"
|
|
end
|
|
<% end -%>
|
|
end
|