Skip to content

funcit/zio-email

Repository files navigation

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 ()
    )

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages