Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/choonkeat/elm-multipart
build a multipart email as `String` with minimal dependencies
https://github.com/choonkeat/elm-multipart
elm multipart
Last synced: 23 days ago
JSON representation
build a multipart email as `String` with minimal dependencies
- Host: GitHub
- URL: https://github.com/choonkeat/elm-multipart
- Owner: choonkeat
- License: mit
- Created: 2021-03-17T15:16:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-18T15:44:08.000Z (almost 4 years ago)
- Last Synced: 2024-12-16T16:14:59.377Z (24 days ago)
- Topics: elm, multipart
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/choonkeat/elm-multipart/latest/
- Size: 32.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multipart
An elm package to build a multipart email as `String` with minimal dependencies, which can still be provided to
email delivery libraries like [choonkeat/elm-aws](https://package.elm-lang.org/packages/choonkeat/elm-aws/latest/AWS-SES#OutgoingMail)```elm
Multipart.alternative (Multipart.boundary "boundary-string")
|> Multipart.addStringPart "text/plain; charset=\"utf-8\"" textHeaders textContent
|> Multipart.addStringPart "text/html; charset=\"utf-8\"" htmlHeaders htmlContent
|> Multipart.string
```## License
Copyright © 2021 Chew Choon Keat
Distributed under the MIT license.