aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/mailer/templates/mailer.rb
blob: 5e7ef42370d228f665c65a6a85bcd6fe2f3c337d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class <%= class_name %> < ActionMailer::Base
  delivers_from "mail@<%= application_name %>.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 => "")
  end
<% end -%>
end