class UserMailer < ApplicationMailer

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.user_mailer.signup_mail.subject
  #
  def signup_mail(user)
    @user = user
    mail to: user.email, subject: "Thank you for signing up"
  end

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.user_mailer.report_success_mail.subject
  #
  def report_success_mail
    @greeting = "Hi"

    mail to: "to@example.org"
  end
end
