Skip to content

jboss-set/sendmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SendMail

Simple Java CLI application that sends a file as an email.

Example Usage

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.

To Do

  • Support reading email body from stdin.
  • Support more SMTP options, like authentication and such. Currently only unauthenticated connections with StartTLS enabled are supported.

About

Java CLI application for sending emails.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages