Simple Java CLI application that sends a file as an email.
Currently only single use case is supported, sending content file as an email body:
java -jar sendmail-<version>-jar-with-dependencies.jar \
--content message.html \
--content-type text/html \
--subject 'Email subject' \
--from [email protected] \
--to [email protected] \
--smtp-server smtp.server.example.org \
--smtp-port 587
To show the usage message run with -h
or --help
option.
- Support reading email body from stdin.
- Support more SMTP options, like authentication and such. Currently only unauthenticated connections with StartTLS enabled are supported.