Class SmsOnRails::ServiceProviders::EmailGateway
In: lib/sms_on_rails/service_providers/email_gateway.rb
Parent: Base

Methods

Public Instance methods

Email Gateway Send message

  send_message('2065551234@txt.att.net', 'My message')
  send_message('12065551234', 'my message', :carrier => 'Verizon')
  send_message(['12065551234', '4125556667'], 'my message', :carrier => 'Verizon')

Params

  • phone_number - can be one of the following
     sms_email_address. Example: '2065551234@txt.att.net'
     array of sms_email_addresses: ['2065551234@txt.att.net', '2065552234@txt.att.net']
    
  • message - the text message to send

Options

  • :sender - email address of the sender overrides default
  • :bcc - email_address or array of email_addresses to blind carbon copy

Protected Instance methods

additional check to make sure the sms_email_address is valid

override to append the carrier if specified as part of the phone number or as a separate option

the formate for email is the sms email address

[Validate]