Sha256: f8634e6b7723128858f18aa465431d440c6f15beed5b95ace84eee4367153095
Contents?: true
Size: 769 Bytes
Versions: 12
Compression:
Stored size: 769 Bytes
Contents
module Rodauth module Rails module Feature module Email extend ActiveSupport::Concern included do depends :email_base end private # Create emails with ActionMailer which uses configured delivery method. def create_email_to(to, subject, body) Mailer.create_email(to: to, from: email_from, subject: "#{email_subject_prefix}#{subject}", body: body) end # Delivers the given email. def send_email(email) email.deliver_now end # ActionMailer subclass for correct email delivering. class Mailer < ActionMailer::Base def create_email(options) mail(options) end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems