Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.52 KB

README.md

File metadata and controls

57 lines (37 loc) · 1.52 KB

csv2mail

A simple java application to parse CSV files, group by email address, and send selected data in the email body and/or as an attachment to the given email address.

Getting Started

Overview

Csv2mail takes a CSV file with a column containing an email address, groups the data by the email address and sends the subset of data to the grouped email address. Csv2mail can attach the resulting subset of data as a CSV file or expose it to an HTML template.

Prerequisites

  • maven
  • java (8 or higher)

Installing

Download or clone

git clone https://github.com/csyperski/csv2mail 

Build

mvn package

Usage

You need three files for this application to function:

  • a configuration file (docs/csv2mail.properties)
  • a csv file (docs/csv2mail.csv)
  • a HTML email template (docs/csv2mail.html)

You'll need to configure the csv2email.properties file to include your SMTP connection information to get started.

The application can be executed with the following command:

java -jar csv2mail.jar config-file-path html-template-path csv-path

If you would like to write the output to a log file, specify the directory where you'd like to write the log files via the argument:

-DLOG_PATH=/var/log/csv2mail/

or

java -DLOG_PATH=/var/log/csv2mail/ -jar csv2mail.jar config-file-path html-template-path csv-path

Authors