Project

sms_portal

0.0
Low commit activity in last 3 years
No release in over a year
Send SMS messages using SMSPortal
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

SmsPortal

Send SMS messages using SMSPortal

Installation

Install the latest release

$ gem install sms_portal

Or add it to your Gemfile

gem 'sms_portal', '0.1.0'

Configuration

Either set the following environment variables

$ export SMS_PORTAL_USERNAME=sms_portal_username
$ export SMS_PORTAL_PASSWORD=sms_portal_password

Or in Rails, you can create an initializer

# config/initializers/sms_portal.rb

SmsPortal.configure do |config|
  config.username = sms_portal_username
  config.password = sms_portal_password
end

To intercept messages in testing/development environments there is an extra configuration option to route all messages to that number.

# as environment variable
$ export SMS_PORTAL_INTERCEPTOR=phone_number

# or in config/initializers/sms_portal.rb
SmsPortal.configure do |config|
  config.interceptor = phone_number
end

Usage

SmsPortal.deliver('0821234567', 'Your message body here')