JavaMail SMTP File Transport.

JavaMail Transports for developers (msgfile, txtfile, nop).

License

License

GroupId

GroupId

org.jsoftware
ArtifactId

ArtifactId

javamail-file-transport
Last Version

Last Version

1.5.5
Release Date

Release Date

Type

Type

jar
Description

Description

JavaMail SMTP File Transport.
JavaMail Transports for developers (msgfile, txtfile, nop).
Project URL

Project URL

http://jsoftware.org
Project Organization

Project Organization

jsoftware.org

Download javamail-file-transport

How to add to project

<!-- https://jarcasting.com/artifacts/org.jsoftware/javamail-file-transport/ -->
<dependency>
    <groupId>org.jsoftware</groupId>
    <artifactId>javamail-file-transport</artifactId>
    <version>1.5.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.jsoftware/javamail-file-transport/
implementation 'org.jsoftware:javamail-file-transport:1.5.5'
// https://jarcasting.com/artifacts/org.jsoftware/javamail-file-transport/
implementation ("org.jsoftware:javamail-file-transport:1.5.5")
'org.jsoftware:javamail-file-transport:jar:1.5.5'
<dependency org="org.jsoftware" name="javamail-file-transport" rev="1.5.5">
  <artifact name="javamail-file-transport" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jsoftware', module='javamail-file-transport', version='1.5.5')
)
libraryDependencies += "org.jsoftware" % "javamail-file-transport" % "1.5.5"
[org.jsoftware/javamail-file-transport "1.5.5"]

Dependencies

provided (1)

Group / Artifact Type Version
javax.mail : javax.mail-api jar 1.5.5

test (3)

Group / Artifact Type Version
com.sun.mail : javax.mail jar 1.5.5
junit : junit jar [4.12,)
org.mockito : mockito-core jar 1.10.19

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.5.5
1.5.1
1.5.0