Sha256: 587a3708d1205baa7ea97fdd9597c51a435091fafb2cad93e91092aaef445d2d
Contents?: true
Size: 757 Bytes
Versions: 27
Compression:
Stored size: 757 Bytes
Contents
module Rodauth module Rails module Feature module Email def self.included(feature) feature.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
27 entries across 27 versions & 1 rubygems