Class: SmsOnRails::ServiceProviders::EmailGatewaySupport::SmsMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/sms_on_rails/service_providers/email_gateway_support/sms_mailer.rb

Instance Method Summary collapse

Instance Method Details

#sms_through_gateway(recipient, message, phone_options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/sms_on_rails/service_providers/email_gateway_support/sms_mailer.rb', line 6

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