Files
mail/README.md

99 lines
2.2 KiB
Markdown
Raw Normal View History

2023-06-21 14:49:11 -04:00
# Pop
2023-06-14 00:52:36 -04:00
2023-06-21 15:11:55 -04:00
<p>
2023-06-24 14:24:10 -04:00
<img src="https://stuff.charm.sh/pop/pop.png" width="400" />
2023-06-21 15:52:13 -04:00
<br />
2023-06-22 16:16:30 -04:00
<a href="https://github.com/charmbracelet/pop/releases"><img src="https://img.shields.io/github/release/charmbracelet/pop.svg" alt="Latest Release"></a>
<a href="https://pkg.go.dev/github.com/charmbracelet/pop?tab=doc"><img src="https://godoc.org/github.com/golang/gddo?status.svg" alt="Go Docs"></a>
<a href="https://github.com/charmbracelet/pop/actions"><img src="https://github.com/charmbracelet/vhs/workflows/build/badge.svg" alt="Build Status"></a>
2023-06-21 15:11:55 -04:00
</p>
2023-06-14 00:52:36 -04:00
Send emails from your terminal.
2023-06-22 16:38:42 -04:00
<img width="500" src="https://vhs.charm.sh/vhs-25OHmk90ODL9BefXZ1P99I.gif" alt="pop mail text-based client">
2023-06-21 15:11:55 -04:00
## Text-based User Interface
Launch the TUI
```bash
pop
```
2023-06-14 00:52:36 -04:00
## Command Line Interface
```bash
2023-06-21 14:49:11 -04:00
pop < message.md \
--from "me@example.com" \
--to "you@example.com" \
--subject "Hello, world!" \
--attach invoice.pdf
2023-06-14 00:52:36 -04:00
```
2023-06-22 16:38:42 -04:00
<img width="500" src="https://vhs.charm.sh/vhs-28eAQHRSZilAiXKqTccLCr.gif" alt="pop mail command line client">
2023-06-21 15:23:06 -04:00
2023-06-21 15:52:13 -04:00
### Environment
To use `pop`, you will need a `RESEND_API_KEY`. You can grab one from: https://resend.com/api-keys.
To avoid typing your `From: ` email address, you can also set the `RESEND_FROM`
environment to pre-fill the field anytime you launch `pop`.
2023-06-21 15:52:13 -04:00
```bash
export RESEND_API_KEY=$(pass RESEND_API_KEY)
export RESEND_FROM=pop@charm.sh
```
2023-06-21 15:52:13 -04:00
2023-06-14 00:52:36 -04:00
## Installation
Use a package manager:
```bash
# macOS
2023-06-21 14:49:11 -04:00
brew install pop
2023-06-14 00:52:36 -04:00
# Arch
2023-06-21 14:49:11 -04:00
yay -S pop
2023-06-14 00:52:36 -04:00
# Nix
2023-06-21 14:49:11 -04:00
nix-env -iA nixpkgs.pop
2023-06-14 00:52:36 -04:00
```
Install with Go:
```sh
2023-06-21 14:49:11 -04:00
go install github.com/charmbracelet/pop@latest
2023-06-14 00:52:36 -04:00
```
2023-06-21 14:49:11 -04:00
Or download a binary from the [releases](https://github.com/charmbracelet/pop/releases).
2023-06-14 00:52:36 -04:00
## License
2023-06-22 16:16:30 -04:00
[MIT](https://github.com/charmbracelet/pop/blob/main/LICENSE)
2023-06-14 00:52:36 -04:00
## Feedback
2023-06-21 14:49:11 -04:00
Wed love to hear your thoughts on this project. Feel free to drop us a note!
2023-06-22 16:16:30 -04:00
- [Twitter](https://twitter.com/charmcli)
- [The Fediverse](https://mastodon.social/@charmcli)
- [Discord](https://charm.sh/chat)
2023-06-21 14:49:11 -04:00
## License
2023-06-22 16:16:30 -04:00
[MIT](https://github.com/charmbracelet/pop/raw/main/LICENSE)
2023-06-21 14:49:11 -04:00
2023-06-22 16:16:30 -04:00
---
2023-06-14 00:52:36 -04:00
2023-06-21 14:49:11 -04:00
Part of [Charm](https://charm.sh).
2023-06-14 00:52:36 -04:00
2023-06-21 14:49:11 -04:00
<a href="https://charm.sh/">
<img
alt="The Charm logo"
width="400"
src="https://stuff.charm.sh/charm-badge.jpg"
/>
</a>
2023-06-14 00:52:36 -04:00
2023-06-22 16:16:30 -04:00
Charm 热爱开源 • Charm loves open source