# Pop

> Send-only email tool from Charm with a terminal form for composing and a command-line mode for scripts.

Pop composes and sends email from the terminal, either through a full-screen form or from flags and standard input. It sends through the Resend API or any SMTP server, renders the Markdown body to HTML unless plain text is requested, and can attach files. It cannot read or fetch mail, so it is used next to a mail client or in scripts and pipelines. It is configured entirely with environment variables or flags.

- Type: Mail tool
- Interface: Full-screen terminal interface
- Systems: Runs on Linux, macOS, Windows and BSD. Not available for Android.
- Language: Go
- License: MIT (MIT)
- Latest version: 0.5.0
- Maintained: yes
- Website: https://github.com/charmbracelet/pop
- Source: https://github.com/charmbracelet/pop
- Documentation: https://github.com/charmbracelet/pop/blob/main/README.md

## Install

### Linux

Native.

- Homebrew: `brew install pop`
- AUR: `yay -S charm-pop-bin`
- Nix: `nix-env -iA nixpkgs.pop`
- go: `go install github.com/charmbracelet/pop@latest`

### macOS

Native.

- Homebrew: `brew install pop`
- go: `go install github.com/charmbracelet/pop@latest`

### Windows

Native.

- winget: `winget install charmbracelet.pop`
- go: `go install github.com/charmbracelet/pop@latest`

### BSD

Native. No ports package; release binaries are published for FreeBSD, OpenBSD and NetBSD.

- go: `go install github.com/charmbracelet/pop@latest`

### Android

Not supported. No Termux package.

## Protocols

- IMAP: No
- POP3: No
- SMTP: Yes
- JMAP: No
- Maildir: No
- mbox: No
- notmuch: No

## Features

- OpenPGP: No
- S/MIME: No
- OAuth2 sign-in: No
- Threads: No
- Search: No
- HTML mail: sends the Markdown body rendered as HTML
- Mouse: No
- Multiple accounts: No
- Offline use: No
- Calendar: No
- Contacts: No
- Vim-style keys: No
- Configuration: environment variables or command-line flags

## Pros

- Works both as an interactive form and as a scriptable command reading the body from standard input.
- Sends through any SMTP server with SSL/TLS or STARTTLS, or through the Resend API.
- Single Go binary with packages for Homebrew, winget, Nix and the AUR.

## Cons

- Send-only: cannot read, fetch or search mail.
- One sending account at a time, set through environment variables.
- No OpenPGP or S/MIME signing.

## Use Pop with Forward Email

File: `~/.bashrc (or your shell profile)`

```
# ~/.bashrc or ~/.zshrc
export POP_SMTP_HOST=smtp.forwardemail.net
export POP_SMTP_PORT=465
export POP_SMTP_ENCRYPTION=ssl        # or port 587 with: starttls
export POP_SMTP_USERNAME=you@example.com
export POP_SMTP_PASSWORD="$(pass show email/forwardemail)"
export POP_FROM=you@example.com

# Interactive: pop
# Scripted:    pop < message.md --to friend@example.org --subject "Hello"
```

| Protocol | Server | Port | Security |
| --- | --- | --- | --- |
| IMAP | imap.forwardemail.net | 993 | SSL/TLS |
| POP3 | pop3.forwardemail.net | 995 | SSL/TLS |
| SMTP | smtp.forwardemail.net | 465 | SSL/TLS |
| SMTP | smtp.forwardemail.net | 587 | STARTTLS |

Username: your full alias address. Password: the one from Generate Password next to the alias. Folders: INBOX, Drafts, Sent Mail, Trash, Spam and Archive.

## Questions

### Does Pop work on Windows?

Yes, it runs natively on Windows.

### Does Pop support IMAP?

No. Pop does not use IMAP.

### Is Pop open source?

Yes, under the MIT.

### How do I use Pop with Forward Email?

Use the config in the Forward Email section on this page, saved as ~/.bashrc (or your shell profile), and replace the address and password with your own.

## Sources

- https://github.com/charmbracelet/pop
- https://github.com/charmbracelet/pop/blob/main/README.md
- https://github.com/charmbracelet/pop/blob/main/LICENSE
- https://github.com/charmbracelet/pop/blob/main/main.go
- https://github.com/charmbracelet/pop/blob/main/email.go
- https://github.com/charmbracelet/pop/blob/main/keymap.go
- https://github.com/charmbracelet/pop/releases/tag/v0.5.0
- https://github.com/charmbracelet/pop/releases/download/v0.5.0/checksums.txt
- https://formulae.brew.sh/formula/pop
- https://aur.archlinux.org/packages/charm-pop-bin
- https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/po/pop/package.nix
- https://github.com/microsoft/winget-pkgs/tree/master/manifests/c/charmbracelet/pop
- https://github.com/termux/termux-packages/tree/master/packages
