Giter Site home page Giter Site logo

ephung01 / javamail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m-szalik/javamail

0.0 0.0 0.0 290 KB

Javamail support for sending emails into text file and via JMS queue that speeds up sending process.

Home Page: https://github.com/m-szalik/javamail/wiki

License: Apache License 2.0

Java 99.89% Makefile 0.11%

javamail's Introduction

javaMail extensions

Join the chat at https://gitter.im/m-szalik/javamail Build Status codecov.io Dependency Status Codacy Badge

More info on Wiki

https://github.com/m-szalik/javamail/wiki

For developers:

Allows sending emails form your application using java.mail.Session to a file that is helpful during development phase. file transport

For admins:

Allows also sending emails using java.mail.Session to JMS queue and than via SMTP. This solutions seeds up sending process because it does not require to connect to real smtp server. It can be deployed on application server (as default mailSession) and it's completely transparent for applications. You can choose transport one of:

  • filemsg = emails are saved to files in mbox format
  • filetxt = emails are saved to files in text format (only headers and text/plain part of message)
  • nop = no file is created, only info in logs

jms transport

Project modules:

  • javamail-file-transport = javaMail transport that stores emails in files - for developers
  • javamail-jms-transport = javaMail transport that sends email to JMS queue - for admins
  • javamail-jms2javamail = an EJB that copies emails from JMS to real javaMail session - for admins

Configuration

For configuration examples see docs/README.md

Webapp demo (Jetty)

It takes 5 steps only to see how it works. You can download a webapp application, which works with jetty to see how it works.

  1. Clone project git clone https://github.com/m-szalik/javamail.git
  2. Enter javamail-test-webapp directory cd javamail/docs/examples/webapp-example/
  3. Run it with maven and jetty mvn jetty:run
  4. Go to http://localhost:8080/webapp and click to send an email
  5. Use your favourite text editor to view an email located in target/messages directory

License

Apache License 2.0

Problems and questions

In case of problems or questions contact me by creating an issue on GitHub or via Join the chat at https://gitter.im/m-szalik/javamail.

javamail's People

Contributors

m-szalik avatar gitter-badger avatar user88wp 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.