Classes implementing mailing functionality (inheriting from
ApplicationMailer) should be named with a
Mailer to the class name ensures there is no confusion about the responsibilities of the class, as classes like
User are conventionally used for ActiveRecord Models.
class User < ActionMailer::Base end class User < ApplicationMailer end
class UserMailer < ActionMailer::Base end class UserMailer < ApplicationMailer end