class PostMailer < ApplicationMailer acts_as_notifier # Subject can be set in your I18n file at config/locales/en.yml # with the following lookup: # # en.post_mailer.failure.subject # def failure(recipient) @greeting = "Hi" mail to: "to@example.org" end end