Vulnerabilities | |||||
---|---|---|---|---|---|
Version | Suggest | Low | Medium | High | Critical |
0.4.3 | 0 | 0 | 0 | 0 | 0 |
0.4.2 | 0 | 0 | 0 | 0 | 0 |
0.4.1 | 0 | 0 | 0 | 0 | 0 |
0.4.0 | 0 | 0 | 0 | 0 | 0 |
0.3.1 | 0 | 0 | 0 | 0 | 0 |
0.3.0 | 0 | 0 | 0 | 0 | 0 |
0.2.3 | 0 | 0 | 0 | 0 | 0 |
0.2.2 | 0 | 0 | 0 | 0 | 0 |
0.2.1 | 0 | 0 | 0 | 0 | 0 |
0.2.0 | 0 | 0 | 0 | 0 | 0 |
0.1.1 | 0 | 0 | 0 | 0 | 0 |
0.1.0 | 0 | 0 | 0 | 0 | 0 |
0.0.4 | 0 | 0 | 0 | 0 | 0 |
0.0.3 | 0 | 0 | 0 | 0 | 0 |
0.0.2 | 0 | 0 | 0 | 0 | 0 |
0.0.1 | 0 | 0 | 0 | 0 | 0 |
0.4.3 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseAn RFC2822 implementation in Elixir, built for composability.
Mail is built and maintained by DockYard, contact us for expert Elixir and Phoenix consulting.
def deps do
[
# Get from hex
{:mail, "~> 0.4"},
# Or use the latest from master
{:mail, github: "DockYard/elixir-mail"}
]
end
You can quickly build an RFC2822 spec compliant message.
message =
Mail.build()
|> Mail.put_text("A great message")
|> Mail.put_to("bob@example.com")
|> Mail.put_from("me@example.com")
|> Mail.put_subject("Open me")
message =
Mail.build_multipart()
|> Mail.put_text("Hello there!")
|> Mail.put_html("<h1>Hello there!</h1>")
|> Mail.put_attachment("path/to/README.md")
|> Mail.put_attachment({"README.md", file_data})
After you have built your message you can render it:
rendered_message = Mail.render(message)
If you'd like to parse an already rendered message back into a data model:
%Mail.Message{} = message = Mail.parse(rendered_message)
There are more functions described in the docs
We are very thankful for the many contributors
This library follows Semantic Versioning
At DockYard we are ready to help you build your next Elixir project. We have a unique expertise in Elixir and Phoenix development that is unmatched. Get in touch!
At DockYard we love Elixir! You can read our Elixir blog posts or come visit us at The Boston Elixir Meetup that we organize.
Please do! We are always looking to improve this library. Please see our Contribution Guidelines on how to properly submit issues and pull requests.
DockYard, Inc. © 2015