Module: SmsSender

Extended by:
ActiveSupport::Concern
Defined in:
app/mailers/concerns/sms_sender.rb

Overview

Mailers which are SmsSenders are able to send SMS instead of email using the same basic pattern in ActiveMailer. It pulls the .sms template.

To avoid any configuration, this pulls the user and credential passively by inspecting the TO address of the email.

To block all SMS deliveries for a mailer, define sendable_sms? false

SmsSender requires a definition of recipient, which must be provided by AddresseeConcern or ParameterizedMailer or otherwise. It is not included in this module to make the choice clearer.