Skip to content
No description, website, or topics provided.
Scala
Branch: master
Clone or download
surajatreya Merge pull request #4 from funcit/feature/3
#3 - Setup travis and bintray
Latest commit e774ad7 Aug 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project Publish to bintray and update badges Aug 12, 2019
src/main/scala/zio/mail/client Added EmailService module Aug 2, 2019
.gitignore Initial commit Aug 1, 2019
.scalafmt.conf Initial commit Aug 1, 2019
.travis.yml Fix build error Aug 11, 2019
LICENSE Initial commit Aug 1, 2019
README.md Publish to bintray and update badges Aug 12, 2019
build.sbt Publish to bintray and update badges Aug 12, 2019

README.md

zio-email

Build Status Download

Email using ZIO

Getting started

Add zio-email dependency to your build.sbt:

libraryDependencies += "com.funcit" %% "zio-email" % "0.1.0"

Client code

    val settings = MailerSettings(
      host = "smtp.gmail.com".some,
      port = 465.some,
      creds = Credentials("username@gmail.com", "password").some,
      ssl = true.some,
      auth = true.some
    )

    val e = Envelope(
      from = "username@gmail.com",
      subject = ("Some subject", Charset.defaultCharset.some).some,
      to = List("recipient@gmail.com"),
      content = Text("Nonsense")
    )

    unsafeRun(
      for{
        _ <- sendMail(e, settings)
      } yield ()
    )
You can’t perform that action at this time.