{"id":20040476,"url":"https://github.com/postalserver/postal-mailgem","last_synced_at":"2025-10-12T23:17:17.445Z","repository":{"id":110402574,"uuid":"88880642","full_name":"postalserver/postal-mailgem","owner":"postalserver","description":"A gem to use Postal as a delivery method with the Ruby Mail gem","archived":false,"fork":false,"pushed_at":"2017-05-16T12:23:01.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T19:46:47.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postalserver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2017-04-20T15:20:30.000Z","updated_at":"2021-07-09T10:29:32.000Z","dependencies_parsed_at":"2023-03-13T13:54:52.477Z","dependency_job_id":null,"html_url":"https://github.com/postalserver/postal-mailgem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postalserver%2Fpostal-mailgem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postalserver%2Fpostal-mailgem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postalserver%2Fpostal-mailgem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postalserver%2Fpostal-mailgem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postalserver","download_url":"https://codeload.github.com/postalserver/postal-mailgem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252466688,"owners_count":21752413,"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":[],"created_at":"2024-11-13T10:42:21.704Z","updated_at":"2025-10-12T23:17:12.402Z","avatar_url":"https://github.com/postalserver.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postal for the Mail Gem\n\nThis allows you to easily deliver messages through Postal using the Ruby `mail` gem.\n\n## Installation\n\nAdd the gems to your Gemfile and run `bundle install`.\n\n```ruby\ngem 'mail'\ngem 'postal-mailgem'\n```\n\n## Configuraton\n\nYou can set the delivery method globally to use Postal.\n\n```ruby\nMail.defaults do\n  delivery_method :postal, :host =\u003e 'https://postal.yourdomain.com', :server_key =\u003e 'xxx'\nend\n```\n\nOr, you can configure it on a per message basis:\n\n```ruby\nmessage = Mail.new\nmessage.to \"invalid@pat.infra.atech.io\"\nmessage.from \"blah@test.postal.io\"\nmessage.body \"Hello there!\"\nmessage.delivery_method :postal, :host =\u003e 'https://postal.yourdomain.com', :server_key =\u003e 'xxx'\nmessage.deliver\n```\n\nYou don't need to specify a `server_key` or `host` if you have set the `POSTAL_KEY` and `POSTAL_HOST` environment variables.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostalserver%2Fpostal-mailgem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostalserver%2Fpostal-mailgem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostalserver%2Fpostal-mailgem/lists"}