{"id":20347103,"url":"https://github.com/ourway/mail_in_a_box","last_synced_at":"2025-07-04T23:39:54.329Z","repository":{"id":57519457,"uuid":"202213257","full_name":"ourway/mail_in_a_box","owner":"ourway","description":"Elixir client for managing email accounts for a mailinabox","archived":false,"fork":false,"pushed_at":"2019-08-15T21:08:55.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T02:51:25.385Z","etag":null,"topics":["client","elixir","elixir-library","mailinabox"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/main_in_a_box","language":"HTML","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/ourway.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}},"created_at":"2019-08-13T19:44:37.000Z","updated_at":"2019-08-15T21:08:56.000Z","dependencies_parsed_at":"2022-08-30T04:21:59.058Z","dependency_job_id":null,"html_url":"https://github.com/ourway/mail_in_a_box","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourway%2Fmail_in_a_box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourway%2Fmail_in_a_box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourway%2Fmail_in_a_box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourway%2Fmail_in_a_box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ourway","download_url":"https://codeload.github.com/ourway/mail_in_a_box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241877461,"owners_count":20035404,"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":["client","elixir","elixir-library","mailinabox"],"created_at":"2024-11-14T22:15:21.856Z","updated_at":"2025-03-04T16:12:03.214Z","avatar_url":"https://github.com/ourway.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MailInABox\n\n## Description\n\nMail In A Box is a simple wrapper for\n[MailInABox](https://mailinabox.email?_src=https://github.com/ourway/mail_in_a_box/)\nAPIs. \n\n## Installation\n\nInstall it by adding `mail_in_a_box` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:mail_in_a_box, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\n## Configuration:\n\nAdd your mailbox information in your config file\n\n```elixir\n#config/config.exs\n\n...\n\nconfig :mail_in_a_box, MIAB.Admin,\n  admin_user: \"guess@example.org\",\n  admin_pass: \"39uq8k7SW8\",\n  endpoint: \"https://box.example.org\",\n  domain: \"example.org\"\n\nconfig :mail_in_a_box, MIAB.IMAP,\n  account: \"noreply@example.org\",\n  password: \"14de0ea2-6187\",\n  use_ssl: false,\n  incoming_mail_server: \"box.example.org\",\n  incoming_port: 993\n\nconfig :mail_in_a_box, MIAB.Sender,\n  adapter: Swoosh.Adapters.SMTP,\n  relay: \"box.example.org\",\n  username: \"noreply@example.org\",\n  password: \"bbe8-33690cfbfeff\",\n  ssl: false,\n  tls: :always,\n  auth: :always,\n  port: 587,\n  no_mx_lookups: false,\n  retries: 2\n\nconfig :mail_in_a_box, MIAB.Send,\n  ## Sender information\n  email: \"noreply@example.org\",\n  from: \"Iranian English Learning Platform\",\n  org: \"Iranian English Learning Mock Tests Center\",\n  org_email: \"info@example.org\",\n  org_webiste: \"https://example.org\",\n  # user email will be appended to unsub url\n  unsub_url: \"https://pte.example.org/api/v1/emails/unsubscribe/\",\n  signature: \"\\nRegards,\\nYour English Learning Platform Team.\"\n...\n\n```\n\n\n## Usage\n\n```elixir\n\nMIAB.Send.welcome(%{name: \"your name\", email: \"you@mail.com\"})\n\n```\n\n## Testing\n\nI tested the project with `100%` coverage. Please you `mix test --trace` to\nsee if everything is OK. Bugs reports are welcome.\n\n\n## Author\n\nFarsheed Ashouri\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fourway%2Fmail_in_a_box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fourway%2Fmail_in_a_box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fourway%2Fmail_in_a_box/lists"}