Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 899 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 899 Bytes

I just want to send an email

Sendmail is a a tiny cross-platform CLI tool to send an email via SMTP relay without the need for a configured MTA.

Usage

$ sendmail -from [email protected] \
   -to [email protected],[email protected],[email protected] \
   -cc [email protected] \
   -attach target.mov \
   -subject "Good morning, angels" < assignment.txt 

Install

go install github.com/kerma/sendmail/cmd/sendmail 

Configuration

In $XDG_CONFIG_HOME/sendmail/config.json (or ~/.config/sendmail/config.json)

{
    "server": "smtp.angels.com",
    "port": 465,
    "user": "[email protected]",
    "password": "secret"
}

Config location can be set via -conf flag. Config can also be set via flags: -server, -port, -user, -password. Flags will override the ones set in config. If -user is left empty no auth will be used.