aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/rails/generators/mailer/templates/mailer.rb
blob: 7343eb28b37db6cc37a49df5de085fa7433ed65b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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