Opensrs::Email
API to manage opensrs domain emails through APP (OpenSRS Email Service Account Provisioning Protocol)
Installation
Add this line to your application's Gemfile:
gem 'opensrs-email'
And then execute:
$ bundle
Or install it yourself as:
$ gem install opensrs-email
Usage
gateway = Opensrs::Email::Gateway.new(OPENSRS_EMAIL_SERVER, OPENSRS_EMAIL_PORT, OPENSRS_EMAIL_USERNAME, OPENSRS_EMAIL_DOMAIN, OPENSRS_EMAIL_PASSWORD)
gateway.delete_mailbox_forward_only(mailbox, domain)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request