Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caarmen/carmailer
Java program to send a mail to multiple recipients.
https://github.com/caarmen/carmailer
Last synced: 11 days ago
JSON representation
Java program to send a mail to multiple recipients.
- Host: GitHub
- URL: https://github.com/caarmen/carmailer
- Owner: caarmen
- License: other
- Created: 2014-03-08T01:46:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-16T18:04:07.000Z (over 9 years ago)
- Last Synced: 2023-03-24T00:21:30.838Z (over 1 year ago)
- Language: Java
- Size: 1.15 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
carmailer
=========Java program to send a mail to multiple recipients.
Provide the following on the command line:
* SMTP authentication parameters: server domain name, port, username, password
* A file with a list of e-mail addresses
* A subject
* A file with the body of the message in HTML or plain text format
* Optional parameters to configure the content-type, charset, and sending behavior. See the usage.The program will then send an e-mail to each recipient in the list.
If the mail content is HTML, then the e-mail will be sent as a multi-part mail in both plain text and in HTML.
If the mail content is plain text, then the e-mail will be sent as plain text.To prevent spam, messages are sent in batches, with a delay between each batch.
Usage:
-----
1. Build:$ ant jar
2. Run with no arguments to see the usage:
$ java -jar bin/carmailer.jar
```
Usage: java -jar bin/carmailer.jar [options]
options:
--password : The password for the SMTP server. If not given here, you will be prompted to enter the password.
--from : the value of the From: field. By default, the username is used.
--dry-run: if true, no mail will actually be sent.
--body-type : Default is auto.
--batch-size : send at most n mails in a batch. Default: 100 mails
--batch-delay : wait s seconds between sending batches. Default: 3600s (1 hour)
--send-progress : Send the progress at the end of each batch, and end status to this e-mail address
--output-folder : if specified, each mail will be written to a file in this folder
--charset : specify the charset for reading and writing. By default the charset is guessed from the content of the file or the http-equiv meta tag in the html file.*recipients file*: must be a text file containing one e-mail address per line.
*body file*: the body of the mail in html or text format.```
Javadoc:
-------The javadoc is here: http://caarmen.github.io/carmailer