Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module OpenSRS
- class APP < SockIt::Base
- host 'admin.test.hostedemail.com'
- port 4449
- ssl true
- attr_accessor :username, :password, :domain
- def initialize(options = {})
- # assign variables
- super
- end
- after_connect :set_version, :authenticate
- protected
- def set_version
- version(:ver => '3.4')
- end
- def authenticate
- login(:login => username, :password => password, :domain => domain)
- end
- end
- end
Add Comment
Please, Sign In to add comment