{"id":13878271,"url":"https://github.com/railsware/actionmailer-balancer","last_synced_at":"2025-04-04T09:06:44.970Z","repository":{"id":60972693,"uuid":"545367895","full_name":"railsware/actionmailer-balancer","owner":"railsware","description":"A Ruby gem to send your ActionMailer mail through one of several delivery methods, selected by weight.","archived":false,"fork":false,"pushed_at":"2025-03-24T10:01:41.000Z","size":85,"stargazers_count":96,"open_issues_count":0,"forks_count":1,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-03-28T08:04:51.112Z","etag":null,"topics":["actionmailer","mail","ruby","ruby-gem","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/railsware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-04T08:36:52.000Z","updated_at":"2025-03-24T10:01:43.000Z","dependencies_parsed_at":"2024-02-29T17:33:38.024Z","dependency_job_id":"8299f2a8-8cf8-4097-a70a-1068a42dd2e9","html_url":"https://github.com/railsware/actionmailer-balancer","commit_stats":{"total_commits":33,"total_committers":5,"mean_commits":6.6,"dds":0.3939393939393939,"last_synced_commit":"0f3a55944d47824e040f898db86edfca5dff187c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsware%2Factionmailer-balancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsware%2Factionmailer-balancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsware%2Factionmailer-balancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsware%2Factionmailer-balancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/railsware","download_url":"https://codeload.github.com/railsware/actionmailer-balancer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149500,"owners_count":20891954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actionmailer","mail","ruby","ruby-gem","ruby-on-rails"],"created_at":"2024-08-06T08:01:44.730Z","updated_at":"2025-04-04T09:06:44.953Z","avatar_url":"https://github.com/railsware.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# ActionMailer Balancer\n\nThis gem allows you to send your ActionMailer mail through one of several delivery methods, selected by weight. \n\nApplications:\n\n- gradually migrate to a new mail provider (first 1% of mail, then 5%, and so on)\n- ...or to a new configuration (SMTP to Email API)\n- spread load between multiple providers\n\nWorks with any valid ActionMailer delivery methods, either built-in or added from a library like [mailtrap](https://github.com/railsware/mailtrap-ruby#actionmailer).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'actionmailer-balancer'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install actionmailer-balancer\n\n## Usage\n\nAdd the configuration to Rails env initializer\n\n```ruby\nYour::Application.configure do\n  config.action_mailer.delivery_method = :balancer\n  config.action_mailer.balancer_settings = {\n    delivery_methods: [\n      {\n        method: :smtp,\n        settings: {\n          user_name: username,\n          password: password,\n          address: host,\n          domain: domain,\n          port: port,\n          authentication: auth_method\n        },\n        weight: 90\n      },\n      {\n        method: :sendmail,\n        settings: {\n          location: '/path/to/your/sendmail'\n        },\n        weight: 10\n      }\n    ]\n  }\nend\n```\n\nNow, just use ActionMailer as usual, and mail will be auto-balanced. \n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/railsware/actionmailer-balancer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/railsware/actionmailer-balancer/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the ActionMailer::Balancer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/railsware/actionmailer-balancer/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailsware%2Factionmailer-balancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frailsware%2Factionmailer-balancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailsware%2Factionmailer-balancer/lists"}