sendem

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 10 Imported by: 0

README

sendem

A command-line tool for sending emails via SMTP.

Installation

sendem will run on most Linux, MacOS and Windows systems.

To install it, just cd into the directory in which you wish to install it and then copy-paste the appropriate one-liner from below (based on the destination O/S and architecture).

Linux (32-bit)
curl -s -L -o sendem https://github.com/alasdairmorris/sendem/releases/latest/download/sendem-linux-386 && chmod +x sendem
Linux (64-bit)
curl -s -L -o sendem https://github.com/alasdairmorris/sendem/releases/latest/download/sendem-linux-amd64 && chmod +x sendem
Mac OS X (Intel)
curl -s -L -o sendem https://github.com/alasdairmorris/sendem/releases/latest/download/sendem-darwin-amd64 && chmod +x sendem
Mac OS X (Apple Silicon)
curl -s -L -o sendem https://github.com/alasdairmorris/sendem/releases/latest/download/sendem-darwin-arm64 && chmod +x sendem
Windows (32-bit)
curl -s -L -o sendem.exe https://github.com/alasdairmorris/sendem/releases/latest/download/sendem-windows-386.exe
Windows (64-bit)
curl -s -L -o sendem.exe https://github.com/alasdairmorris/sendem/releases/latest/download/sendem-windows-amd64.exe
Build From Source

If you have Go installed and would prefer to build the app yourself, you can do:

go install github.com/alasdairmorris/sendem@latest

Usage

A command-line tool for sending emails via SMTP.

Usage:
  sendem [-f FROM] [-c CC ...] [-b BCC ...] [-s SUBJECT] [-m FILE] [-a FILE ...]
            [-u USERNAME] [-p PASSWORD] [-x HOST:PORT] [-H] RECIPIENT...
  sendem -h | --help
  sendem --version

Options:
  -h, --help              Show this screen.
  --version               Show version.
  -f, --from ADDR         From this address.
  -c, --cc ADDR           CC this address (for multiple, use "-c a1 -c a2 ...")
  -b, --bcc ADDR          BCC this address (for multiple, use "-b a1 -b a2 ...")
  -s, --subject SUBJECT   Subject
  -m, --message FILE      File to use for message body [default is stdin]
  -a, --attach FILE       File to attach (for multiple, use "-a f1 -a f2 ...")
  -H, --html              Treat message body as HTML.
  -u, --user USERNAME     Username for SMTP connection.
  -p, --pass PASSWORD     Password for SMTP connection.
  -x, --server HOST:PORT  Server to use for SMTP [default: localhost:25]

Homepage: https://github.com/alasdairmorris/sendem

Examples

$ date | sendem -a /tmp/file.pdf -f sender@whatever.com -s Subject recipient@example.com

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL