Sha256: 15e931f1c54cd7a179bdb1a5f3e71aa9068bc1e6df2eb1f73fe285a771a307a7

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

class AdminMailer < ApplicationMailer
  default from: proc { "\"Pages\" <no-reply@anyone.no>" }
  layout false

  def account_recovery(user, url)
    @user = user
    @url = url
    mail(
      to: @user.email,
      subject: "Recover your account on #{PagesCore.config(:site_name)}"
    )
  end

  def invite(invite, url)
    @invite = invite
    @url = url
    mail(
      to: @invite.email,
      subject: "#{PagesCore.config(:site_name)} has invited you to Pages"
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.14.0 app/mailers/admin_mailer.rb