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

Version Path
short_message-1.1.2 app/mailers/short_message/mailer.rb
short_message-1.1.1 app/mailers/short_message/mailer.rb
short_message-1.1.0 app/mailers/short_message/mailer.rb
short_message-1.0.2 app/mailers/short_message/mailer.rb
short_message-1.0.1 app/mailers/short_message/mailer.rb
short_message-1.0.0 app/mailers/short_message/mailer.rb