{"id":13507841,"url":"https://github.com/DockYard/elixir-mail","last_synced_at":"2025-03-30T09:33:05.734Z","repository":{"id":3928794,"uuid":"51380778","full_name":"DockYard/elixir-mail","owner":"DockYard","description":"Build composable mail messages","archived":false,"fork":false,"pushed_at":"2025-03-18T11:11:40.000Z","size":1030,"stargazers_count":452,"open_issues_count":11,"forks_count":67,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-20T19:31:02.747Z","etag":null,"topics":["elixir","mail","rfc-2822"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/DockYard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"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":"2016-02-09T16:43:15.000Z","updated_at":"2025-03-18T11:11:44.000Z","dependencies_parsed_at":"2024-01-31T07:03:24.144Z","dependency_job_id":"a413f3d5-10a7-4937-852b-01bad0f873b2","html_url":"https://github.com/DockYard/elixir-mail","commit_stats":{"total_commits":177,"total_committers":34,"mean_commits":5.205882352941177,"dds":0.615819209039548,"last_synced_commit":"68ab8006a3706e20444f6d218196744602f22c56"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockYard%2Felixir-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockYard%2Felixir-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockYard%2Felixir-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockYard%2Felixir-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DockYard","download_url":"https://codeload.github.com/DockYard/elixir-mail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301963,"owners_count":20755512,"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":["elixir","mail","rfc-2822"],"created_at":"2024-08-01T02:00:40.719Z","updated_at":"2025-03-30T09:33:05.728Z","avatar_url":"https://github.com/DockYard.png","language":"Elixir","funding_links":[],"categories":["Email","Elixir"],"sub_categories":[],"readme":"# Mail\n\n![Build Status](https://github.com/DockYard/elixir-mail/actions/workflows/main.yml/badge.svg)\n\nAn RFC2822 implementation in Elixir, built for composability.\n\n**[Mail is built and maintained by DockYard, contact us for expert Elixir and Phoenix consulting](https://dockyard.com/phoenix-consulting)**.\n\n## Installation\n\n```elixir\ndef deps do\n  [\n    # Get from hex\n    {:mail, \"~\u003e 0.4\"},\n\n    # Or use the latest from master\n    {:mail, github: \"DockYard/elixir-mail\"}\n  ]\nend\n```\n\n## Building\n\nYou can quickly build an RFC2822 spec compliant message.\n\n#### Single-Part\n\n```elixir\nmessage =\n  Mail.build()\n  |\u003e Mail.put_text(\"A great message\")\n  |\u003e Mail.put_to(\"bob@example.com\")\n  |\u003e Mail.put_from(\"me@example.com\")\n  |\u003e Mail.put_subject(\"Open me\")\n```\n\n#### Multi-Part\n\n```elixir\nmessage =\n  Mail.build_multipart()\n  |\u003e Mail.put_text(\"Hello there!\")\n  |\u003e Mail.put_html(\"\u003ch1\u003eHello there!\u003c/h1\u003e\")\n  |\u003e Mail.put_attachment(\"path/to/README.md\")\n  |\u003e Mail.put_attachment({\"README.md\", file_data})\n```\n\n## Rendering\n\nAfter you have built your message you can render it:\n\n```elixir\nrendered_message = Mail.render(message)\n```\n\n## Parsing\n\nIf you'd like to parse an already rendered message back into\na data model:\n\n```elixir\n%Mail.Message{} = message = Mail.parse(rendered_message)\n```\n\n[There are more functions described in the docs](https://hexdocs.pm/mail/Mail.html)\n\n## Authors ##\n\n* [Brian Cardarella](https://twitter.com/bcardarella)\n\n[We are very thankful for the many contributors](https://github.com/dockyard/elixir-mail/graphs/contributors)\n\n## Versioning ##\n\nThis library follows [Semantic Versioning](https://semver.org)\n\n## Looking for help with your Elixir project? ##\n\n[At DockYard we are ready to help you build your next Elixir project](https://dockyard.com/phoenix-consulting). We have a unique expertise\nin Elixir and Phoenix development that is unmatched. [Get in touch!](https://dockyard.com/contact/hire-us)\n\nAt DockYard we love Elixir! You can [read our Elixir blog posts](https://dockyard.com/blog/categories/elixir)\nor come visit us at [The Boston Elixir Meetup](https://www.meetup.com/Boston-Elixir/) that we organize.\n\n## Want to help? ##\n\nPlease do! We are always looking to improve this library. Please see our\n[Contribution Guidelines](https://github.com/dockyard/elixir-mail/blob/master/CONTRIBUTING.md)\non how to properly submit issues and pull requests.\n\n## Legal ##\n\n[DockYard](https://dockyard.com/), Inc. © 2015\n\n[@dockyard](https://twitter.com/dockyard)\n\n[Licensed under the MIT license](https://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDockYard%2Felixir-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDockYard%2Felixir-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDockYard%2Felixir-mail/lists"}