smtp-util


License

License

GroupId

GroupId

com.github.ajozwik
ArtifactId

ArtifactId

smtp-util_2.12
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

smtp-util
smtp-util
Project URL

Project URL

https://github.com/ajozwik/akka-smtp-server
Project Organization

Project Organization

com.github.ajozwik
Source Code Management

Source Code Management

https://github.com/ajozwik/akka-smtp-server

Download smtp-util_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.ajozwik/smtp-util_2.12/ -->
<dependency>
    <groupId>com.github.ajozwik</groupId>
    <artifactId>smtp-util_2.12</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.ajozwik/smtp-util_2.12/
implementation 'com.github.ajozwik:smtp-util_2.12:0.2.2'
// https://jarcasting.com/artifacts/com.github.ajozwik/smtp-util_2.12/
implementation ("com.github.ajozwik:smtp-util_2.12:0.2.2")
'com.github.ajozwik:smtp-util_2.12:jar:0.2.2'
<dependency org="com.github.ajozwik" name="smtp-util_2.12" rev="0.2.2">
  <artifact name="smtp-util_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.ajozwik', module='smtp-util_2.12', version='0.2.2')
)
libraryDependencies += "com.github.ajozwik" % "smtp-util_2.12" % "0.2.2"
[com.github.ajozwik/smtp-util_2.12 "0.2.2"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.10
ch.qos.logback : logback-classic jar 1.2.3
com.typesafe.scala-logging : scala-logging_2.12 jar 3.9.2
org.apache.james : apache-mime4j jar 0.8.3

provided (1)

Group / Artifact Type Version
com.sksamuel.scapegoat : scalac-scapegoat-plugin_2.12 jar 1.3.11

test (2)

Group / Artifact Type Version
org.scalatest : scalatest_2.12 jar 3.1.0
org.scalatestplus : scalacheck-1-14_2.12 jar 3.1.0.0

Project Modules

There are no modules declared in this project.

akka-smtp-server

Build Status Coverage Status Codacy Badge Codacy Badge Maven Central Maven Central

Smtp server based on akka stream.

Add to your project:

 libraryDependencies += "com.github.ajozwik" %% "akka-smtp" % <version>

For minimal usage you need to provide consumer method with signature (Mail=>Future[ConsumedResult]). consumer method receives Mail object and it repeats with Future[SuccessfulConsumed] or Future[FailedConsumed].

AddressHandler.scala is optional implementation for fail fast address resolution (blacklist).

Usage: Implement trait Consumer

Example implementation: LogConsumer

Example usage:

  • Pack project

sbt pack

akka-smtp/target/pack/bin/main -Dconsumer.class=pl.jozwik.smtp.server.consumer.FileLogConsumer

  • or use project as dependency and provide own Main class

Versions

Version
0.2.2
0.2.1.1