Sha256: 8b3056605dcb408ca5a25f54f609a019471374f410af5e3d1be1117eebf999f7

Contents?: true

Size: 512 Bytes

Versions: 8

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

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

  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.13.0 app/mailers/admin_mailer.rb
pages_core-3.12.7 app/mailers/admin_mailer.rb
pages_core-3.12.6 app/mailers/admin_mailer.rb
pages_core-3.12.5 app/mailers/admin_mailer.rb
pages_core-3.12.4 app/mailers/admin_mailer.rb
pages_core-3.12.3 app/mailers/admin_mailer.rb
pages_core-3.12.2 app/mailers/admin_mailer.rb
pages_core-3.12.1 app/mailers/admin_mailer.rb