{"id":32170923,"url":"https://github.com/mylanconnolly/pewpew","last_synced_at":"2026-02-20T16:01:28.429Z","repository":{"id":57531254,"uuid":"101788795","full_name":"mylanconnolly/pewpew","owner":"mylanconnolly","description":"A minimal Mailgun client for Elixir","archived":false,"fork":false,"pushed_at":"2017-12-20T20:14:44.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T04:43:03.212Z","etag":null,"topics":["elixir","mailgun"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/mylanconnolly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-29T17:35:44.000Z","updated_at":"2017-11-08T09:17:57.000Z","dependencies_parsed_at":"2022-09-05T09:51:13.891Z","dependency_job_id":null,"html_url":"https://github.com/mylanconnolly/pewpew","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mylanconnolly/pewpew","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylanconnolly%2Fpewpew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylanconnolly%2Fpewpew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylanconnolly%2Fpewpew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylanconnolly%2Fpewpew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mylanconnolly","download_url":"https://codeload.github.com/mylanconnolly/pewpew/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylanconnolly%2Fpewpew/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29566366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elixir","mailgun"],"created_at":"2025-10-21T17:38:07.247Z","updated_at":"2026-02-20T16:01:28.418Z","avatar_url":"https://github.com/mylanconnolly.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PewPew\n\nThis is a minimal client for the [mailgun](https://mailgun.com) service.\n\nWhy does it exist? While dealing with the mailgun API is pretty straightforward,\nI wanted to create a simple hex package that I could reuse across my other\nsystems that might need it later on.\n\n## Installation\n\nAdd to your dependencies:\n\n```elixir\ndef deps do\n  [{:pewpew, \"~\u003e 0.1.0\"}]\nend\n```\n\n## Usage\n\nFirst, set some configuration options in `config.exs` (or the env-specific\nversion):\n\n```elixir\nuse Mix.Config\n\nconfig :pewpew,\n  from: \"default `from` address\",\n  key: \"your API key from mailgun\",\n  domain: \"the domain you wish to use in mailgun\"\n```\n\nYou can then create and send a mailer like so:\n\n```elixir\n# Create a new mailer\nm = PewPew.Mailer.new(\n  to: \"test@example.com\",\n  subject: \"A subject!\",\n  text: \"Plain-text body\"\n)\n\n# Send the mailer\nPewPew.Mailer.send(m)\n```\n\nThere are a number of functions inside the `PewPew.Mailer` class, and they're\nhopefully pretty easy to understand. The functions are designed to be easily\nintegrated inside a pipeline, so you can modify the struct pretty easily if you\ndo not have all of the attributes at the time of creation. As an example:\n\n```elixir\nPewPew.Mailer.new()\n|\u003e PewPew.Mailer.set_to(\"test@example.com\")\n|\u003e PewPew.Mailer.set_cc(\"test@another-example.com\")\n|\u003e PewPew.Mailer.set_bcc(\"sneaky@example.com\")\n|\u003e PewPew.Mailer.set_subject(\"Hello!\")\n|\u003e PewPew.Mailer.set_text(\"This is some text content\")\n|\u003e PewPew.Mailer.set_html(\"\u003cp\u003eSome \u003cb\u003efancy\u003c/b\u003e HTML content!\u003c/p\u003e\")\n|\u003e PewPew.Mailer.send()\n```\n\nFull documentation for this project can be found at\n[https://hexdocs.pm/pewpew](https://hexdocs.pm/pewpew).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmylanconnolly%2Fpewpew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmylanconnolly%2Fpewpew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmylanconnolly%2Fpewpew/lists"}