mailgun4s


License

License

MIT
GroupId

GroupId

org.matthicks
ArtifactId

ArtifactId

mailgun4s_2.11
Last Version

Last Version

1.0.13
Release Date

Release Date

Type

Type

jar
Description

Description

mailgun4s
mailgun4s
Project URL

Project URL

https://github.com/outr/mailgun4s
Project Organization

Project Organization

org.matthicks
Source Code Management

Source Code Management

https://github.com/outr/mailgun4s

Download mailgun4s_2.11

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
io.youi : youi-client_2.11 jar 0.11.11

Project Modules

There are no modules declared in this project.

Codacy Badge Build Status

mailgun4s

Updated project originally forked from https://github.com/Nycto/mailgun-scala but since has been completely re-written.

A Scala wrapper around the Mailgun API. Their documentation can be found here:

http://documentation.mailgun.com

Currently only supports sending messages, but more functionality will be added as needed or requested.

Example

The following example shows how to instantiate and send an email:

import org.matthicks.mailgun._
import java.io._
import scala.concurrent._
import scala.concurrent.duration._

val mailgun = new Mailgun("samples.mailgun.org", "key-YOUR-MAILGUN-KEY")
val response = mailgun.send(Message.simple(
  from = EmailAddress("[email protected]", "Test App"),
  to = EmailAddress("[email protected]", "Joe User"),
  "Mailgun4s Rules!",
  text = "This is the testing text",
  html = "<html><b>This</b> <i>seems</i> <img src=\"cid:example.jpg\"/> to <h1>work!</h1></html>"
).withInline(new File("example.jpg"), "image/jpeg"))

val result = Await.result(response, Duration.Inf)
println(s"Result: $result")

Adding it to your Project

Add the following directives to your build.sbt file:

libraryDependencies ++= Seq(
    "org.matthicks" %% "mailgun4s" % "1.0.15"
)

License

This library is released under the MIT License, which is pretty spiffy. You should have received a copy of the MIT License along with this program. If not, see http://www.opensource.org/licenses/mit-license.php.

org.matthicks

OUTR Technologies

Versions

Version
1.0.13
1.0.12
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0