package letters

  1. Overview
  2. Docs
Client library for sending email over SMTP

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
md5=37c789a5ff830b38b48a76b3bb416718
sha512=192016aedd336844524c2f8964aac1cb909442fd79ce74561994941dfaa0efb1c0ad8b63c272a4846a8607678be08b1d6660288826272ce11f376c91cce51237

Description

Simple to use SMTP client implementation for ocaml

Published: 08 Jul 2020

README

Setup

opam switch create . ocaml-base-compiler.4.08.1
opam install --deps-only -y . --with-test

Build

dune build

Run Tests

First create ethereal.email account and store account details

curl -d '{ "requestor": "letters", "version": "0.1.0" }' "https://api.nodemailer.com/user" -X POST -H "Content-Type: application/json" > ethereal_account.json

Currently using ethereal.email service requires non-released version of colombe and you need to checkout the project, commit edf757c58fce58c170c63e8a92d3bc81fe4d32ff contains the needed fix. Then the version with the fix needs to be pinned in the build env:

cd /path/to/colombe
opam switch /path/to/letters
# Follow instructions to evaluate the environment
git switch --detach edf757c58fce58c170c63e8a92d3bc81fe4d32ff
opam pin .
# Finally, return back to letters project
cd /path/to/letters

Then execute the tests

dune test

And finally review that the email is correctly generated in the service:

  • login to https://ethereal.email/login using credentials from the ethereal_account.json

  • check the content of messages: https://ethereal.email/messages

Credits

This project is build on colombe and mrmime libraries and use facteur as starting point.

License

Copyright (c) 2020 Miko Nieminen

Distributed under the MIT License.

Dependencies (11)

  1. tls < "0.16.0"
  2. fpath >= "0.7.0"
  3. lwt >= "5.2.0"
  4. ptime >= "0.8.5"
  5. x509 >= "0.10.0"
  6. fmt >= "0.8.8"
  7. sendmail-lwt = "0.3.0"
  8. colombe = "0.3.0"
  9. mrmime = "0.3.0"
  10. dune >= "2.3"
  11. ocaml >= "4.03.0"

Dev Dependencies (4)

  1. odoc with-doc
  2. yojson >= "1.7.0" & with-test
  3. alcotest-lwt >= "1.1.0" & with-test
  4. alcotest >= "1.1.0" & with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.