Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toastal/mailto

Elm mailto links made easy
https://github.com/toastal/mailto

elm mailto

Last synced: about 2 months ago
JSON representation

Elm mailto links made easy

Awesome Lists containing this project

README

        

# mailto

A piped DSL for creating `mailto:` links. See more at [rfc6068](https://datatracker.ietf.org/doc/html/rfc6068#section-4).

```elm
partnerMailto : Mailto
partnerMailto =
mailto "[email protected]"
|> subject "I want to cook you dinner"
|> cc [ "[email protected]", "[email protected]" ]
|> bcc [ "[email protected]" ]
|> body "I’ll be making a spicy, Isaan nam dtok muu salad (น้ำตกหมู)."

view : Html msg
view =
a
[ toHref partnerMailto ]
[ text "🐷🌶️🥬🍚" ]
```

Which will output

```html
"🐷🌶️🥬🍚
```

---

## Project & Community Notes

This project is regrettably available on [GitHub](https://github.com/toastal/mailto). The Elm community has tied itself to the closed-source, Microsoft-owned code forge of GitHub for package registry and identity. This does not protect the privacy or freedom of its community members.

---

## License

This project is licensed under Apache License 2.0 - [LICENSE](./LICENSE) file for details.

## Funding

If you want to make a small contribution to the maintanence of this & other projects

- [Liberapay](https://liberapay.com/toastal/)
- [Bitcoin: `39nLVxrXPnD772dEqWFwfZZbfTv5BvV89y`](bitcoin://39nLVxrXPnD772dEqWFwfZZbfTv5BvV89y?message=Funding%20toastal%E2%80%99s%20Elm%20mailto%20development
) (verified on [Keybase](https://keybase.io/toastal/sigchain#690220ca450a3e73ff800c3e059de111d9c1cd2fcdaf3d17578ad312093fff2c0f))
- [Zcash: `t1a9pD1D2SDTTd7dbc15KnKsyYXtGcjHuZZ`](zcash://t1a9pD1D2SDTTd7dbc15KnKsyYXtGcjHuZZ?message=Funding%20toastal%E2%80%99s%20Elm%20mailto%20development) (verified on [Keybase](https://keybase.io/toastal/sigchain#65c0114a3c8ffb46e39e4d8b5ee0c06c9eb97a02c4f6c42a2b157ca83b8c47c70f))