Giter Club home page Giter Club logo

spring-mail-batch's Introduction

Mail batch application

A sample Spring Batch application to send emails to several recipients. It feeds email addresses from a csv file and sends an email to each recipient including an attachment. A sample csv file and attachment file are provided as samples. The code uses the Spring Batch project to configure a job for this task.

I've been using this application to send personal codes and specific instructions on how to register to some PaaS and IaaS providers to my students. The project is tailored to this specific use case, where instructions are sent as an attachment and the body of the email contains the personal code to redeem in order to get student access to some cloud provider.

How to run the application

Java 8 is required. To run the application:

mvn clean package
java -jar target/mail-batch-0.0.1-SNAPSHOT.jar \
  --spring.mail.host=<host> \
  --spring.mail.port=<port> \
  --spring.mail.username=<user> \
  --spring.mail.password=<pass> \
  --codeurjc.batch.data=data.csv \
  --codeurjc.batch.attachment=sample-attachment.txt

Release changes

0.2.0

  • Add velocity templates for building email subject and body

0.1.0

  • Initial implementation

spring-mail-batch's People

Contributors

gortazar avatar

Stargazers

Wumpus avatar Hyunjun Park avatar Grosicky avatar  avatar Andro Vonryan Derecho avatar  avatar Tom Marler avatar Hoang Dq avatar cedric vallee avatar Sabas Pedra avatar jigi avatar Hugo J. Bello avatar

Watchers

 avatar James Cloos avatar Janaka Perera avatar Wumpus avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.