{"id":19032494,"url":"https://github.com/creadone/dashamail","last_synced_at":"2025-07-07T12:09:50.676Z","repository":{"id":70234131,"uuid":"603826984","full_name":"creadone/dashamail","owner":"creadone","description":"Гем для работы с транзакционным API российского сервиса https://dashamail.ru","archived":false,"fork":false,"pushed_at":"2023-02-22T17:35:23.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T13:13:51.561Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/creadone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-02-19T17:27:40.000Z","updated_at":"2024-12-12T18:52:00.000Z","dependencies_parsed_at":"2023-07-29T09:15:44.828Z","dependency_job_id":null,"html_url":"https://github.com/creadone/dashamail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/creadone/dashamail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creadone%2Fdashamail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creadone%2Fdashamail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creadone%2Fdashamail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creadone%2Fdashamail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creadone","download_url":"https://codeload.github.com/creadone/dashamail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creadone%2Fdashamail/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259900391,"owners_count":22929185,"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-08T21:28:57.507Z","updated_at":"2025-07-07T12:09:50.654Z","avatar_url":"https://github.com/creadone.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DashaMail\n\nГем для работы с транзакционным API российского сервиса https://dashamail.ru, с его методами и параметрами можно ознакомиться на [официальном ресурсе](https://dashamail.ru/transactional/).\n\n## Установка\n\nУкажите в проекте загрузку гема из гитхаба:\n\n```sh\ngem 'dashamail', git: 'https://github.com/creadone/dashamail'\n```\nЗатем установите с помощью Bundler\n\n```sh\nbundle install\n```\n\n## Использование\n\nСконфигурируйте гем в своем проекте:\n```ruby\nDashaMail.configure do |config|\n  config.api_key    = 'ваш API-ключ'\n  config.domain     = 'my-domain.ru'\n  config.from_email = 'marketing@my-domain.ru'\n  config.from_name  = 'Отдел маркетинга'\n  # config.http_debug = true\nend\n```\n\nОтправить письмо:\n```ruby\nmailer         = DashaMail::Mailer.new\nmailer.to      = 'marketing@customer.ru'\nmailer.subject = 'Какой-то заголовок'\nmailer.message = '\u003cp\u003eКакой-то текст\u003c/p\u003e\u003cimg src=\"cid:123\"\u003e'\n\nmailer.add_attachment './attachment.png'\nmailer.add_inline     './inline_attachment.png', 123\n\nresponse = mailer.send\n\nif response.success?\n  pp response.body\n# {\"msg\"=\u003e\n#   {\"err_code\"=\u003e0,\n#    \"text\"=\u003e\"OK\",\n#    \"type\"=\u003e\"message\"},\n#  \"data\"=\u003e\n#  {\"transaction_id\"=\u003e\"5a802b10ba82eccfd164f3c8be0fb678\"}}\n\n  pp response.transaction_id #=\u003e 5a802b10ba82eccfd164f3c8be0fb678\nend\n```\n\nПроверить статус отправки письма:\n\n```ruby\nmailer = DashaMail::Mailer.new\nresponse = mailer.check('5a802b10ba82eccfd164f3c8be0fb678')\n\npp response.data\n# {\"data\"=\u003e\n#   {\"date\"=\u003e\"2023-02-22 19:14:42\",\n#    \"datesent\"=\u003e\"2023-02-22 19:14:42\",\n#    \"to\"=\u003e\"marketing@customer.ru\",\n#    \"status\"=\u003e5,\n#    \"statusname\"=\u003e\"Sent\",\n#    \"statuschangedate\"=\u003e\"2023-02-22 19:14:42\"},\n#  \"success\"=\u003etrue}\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/creadone/dashamail.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreadone%2Fdashamail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreadone%2Fdashamail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreadone%2Fdashamail/lists"}