Giter Site home page Giter Site logo

yeshwant123 / promotionalemailgenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pedrolucasom/promotionalemailgenerator

0.0 1.0 0.0 120 KB

:computer: Spring Batch Application to send promotional emails :mailbox: to clients inside of a configured Datasource with Docker :whale:.

Shell 1.91% Java 85.77% Dockerfile 12.31%

promotionalemailgenerator's Introduction

Logo: PromotionalEmailGenerator

Version documentation maintenance Twitter: PedroLucasOM

๐Ÿ’ป Spring Batch Application to send promotional emails ๐Ÿ“ซ to clients inside of a configured Datasource with Docker ๐Ÿณ.

Topics

  1. About SpringBatch
  2. About the Project
  3. Author
  4. Contributing
  5. Show your support
  6. License

1. About SpringBatch

It is a framework that uses the Java Virtual Machine and the Spring Ecosystem to build batch applications. By definition, batch systems are systems that realize a process of a finite amount of data without interaction or interruption.

To learn more about this framework, view this article on the Notion: SpringBatch Article

2. About the Project

Implemented Job

It's a job responsible to execute one step that will read clients and products from a configured datasource, process this data linking the product interest to each client and writing and sending an email to the configured recipients two times for each 60 seconds.

Prerequisites

  • docker

Configuration

To configure this job, you need to follow some steps:

  • First, you need to create an account at MailTrap
  • Create a new inbox
  • View the SMTP Setting and get the user and password
  • With these informations, you need to open the env file .env and put this data at EMAIL_USER and EMAIL_PASSWORD
  • After it, you need to get two email addresses you have access to
  • Open the file database.sql
  • In the lines 30 and 31, you will put these email addresses instead of '[email protected]' and '[email protected]'

Run

With the docker started, execute this command at the project root:

docker-compose up -d --build

Usage

Seeing the emails in the mailtrap panel

Navigate to your Mailtrap Panel and see the sended emails to the respective recipients.

Seeing the emails in the configured recipients

Navigate to your inbox of the emails that you putted like recipients and see the messages.

Stop

To stop correctly:

docker-compose down -v

Remember to execute this command each time that you want change the parameter value.

3. Author

๐Ÿ‘ค Pedro Lucas

4. Contributing ๐Ÿค

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

5. Show your support

Give a โญ if this project helped you!

6. License ๐Ÿ“

Copyright ยฉ 2021 Pedro Lucas.

promotionalemailgenerator's People

Contributors

pedrolucasom avatar

Watchers

James Cloos 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.