Sendmail is a a tiny cross-platform CLI tool to send an email via SMTP relay without the need for a configured MTA.
$ sendmail -from [email protected] \
-to [email protected],[email protected],[email protected] \
-cc [email protected] \
-attach target.mov \
-subject "Good morning, angels" < assignment.txt
go install github.com/kerma/sendmail/cmd/sendmail
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.