Sha256: 10d81a2057ccb0db840a7f97b7794f37bb58aa93ef4b4535fab9ebb76ac02034

Contents?: true

Size: 496 Bytes

Versions: 8

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

class AdminMailer < ApplicationMailer
  default from: proc { "\"Pages\" <support@anyone.no>" }

  def password_reset(user, url)
    @user = user
    @url = url
    mail(
      to: @user.email,
      subject: "Reset your password 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

8 entries across 8 versions & 1 rubygems

Version Path
pages_core-3.9.2 app/mailers/admin_mailer.rb
pages_core-3.9.1 app/mailers/admin_mailer.rb
pages_core-3.9.0 app/mailers/admin_mailer.rb
pages_core-3.8.3 app/mailers/admin_mailer.rb
pages_core-3.8.2 app/mailers/admin_mailer.rb
pages_core-3.8.1 app/mailers/admin_mailer.rb
pages_core-3.8.0 app/mailers/admin_mailer.rb
pages_core-3.7.0 app/mailers/admin_mailer.rb