Sha256: b73a0a19e488496163cf458821ddc090b13357c5e502b3b9eb3ddbda25a77eab

Contents?: true

Size: 828 Bytes

Versions: 4

Compression:

Stored size: 828 Bytes

Contents

require 'action_mailer'
module SmsOnRails
  module ServiceProviders
    module EmailGatewaySupport
      class SmsMailer < ::ActionMailer::Base
        def sms_through_gateway(recipient, message, phone_options={})
          recipients    recipient
          bcc           phone_options[:bcc]
          from          phone_options[:sender]
          subject       phone_options[:subject]
          body          :message => message, :options => phone_options
          template      phone_options[:template] if phone_options[:template]
          content_type  'text/plain'
        end
      end
    end
  end
end

SmsOnRails::ServiceProviders::EmailGatewaySupport::SmsMailer.prepend_view_path File.dirname(__FILE__) + '/../../../'
SmsOnRails::ServiceProviders::EmailGatewaySupport::SmsMailer.logger ||= ActiveRecord::Base.logger

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sztywny-smsonrails-0.3.3 lib/sms_on_rails/service_providers/email_gateway_support/sms_mailer.rb
sztywny-smsonrails-0.3.1 lib/sms_on_rails/service_providers/email_gateway_support/sms_mailer.rb
sztywny-smsonrails-0.3.0 lib/sms_on_rails/service_providers/email_gateway_support/sms_mailer.rb
sztywny-smsonrails-0.2.3 lib/sms_on_rails/service_providers/email_gateway_support/sms_mailer.rb