Sha256: 2ae6c3db145d202ae39cc1f1b509da8627428f4fdd219088b52ddc90250ccd33
Contents?: true
Size: 586 Bytes
Versions: 6
Compression:
Stored size: 586 Bytes
Contents
module ShortMessage class Mailer < ApplicationMailer def error_notification message, response mail to: ShortMessage.config.admin_notification_email, subject: "Error delivering SMS to #{message.recipient}", body: "SMS from #{message.sender} to #{message.recipient} could not be sent!\r\n\r\nResponse: #{response.to_yaml}" end def payment_required_notification mail to: ShortMessage.config.reload_notification_email, subject: "SMS Gateway requires payment", body: "Your SMS Gateway API #{ShortMessage.config.gateway_server} requires payment!" end end end
Version data entries
6 entries across 6 versions & 1 rubygems