package sihl-email

  1. Overview
  2. Docs
Sihl service to deal with sending emails

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.0-rc2.tar.gz
md5=1fd667e26ef891aa41d6ccd0001edc74
sha512=31ae7bf34fa06570a69b3975298f9b7700f93b06887d90730938527dab0078b94c59fcb64d7355cf220c9d0a0a4ebe33344a3bac932db339581c453cb27edc6b

doc/index.html

Sihl Email

This module provides the email service and the email template service.

Email service

The email service provides API for sending emails. Currently SMTP and Sendgrid are supported.

Installation

Backend

First, decide for a backend in service/service.ml:

module Email = Sihl_email.SMTP

Registration

Then, register the service in run/run.ml:

let services = [ Service.Email.register () ]

Configuration

Run make sihl to get a list of required configurations.

Usage

The API is documented in Sihl.Contract.Email.Sig.

Template service

The template service can be used to create and edit email templates. Email templates are rendered with parameters to emails, that can be sent with the email service. Currently MariaDb (Sihl_cache.MariaDb) and PostgreSql (Sihl_cache.PostgreSql) are supported.

Installation

Backend

First, decide for a backend in service/service.ml:

module Email_template = Sihl_email.Temlate.PostgreSql

Registration

Then, register the service in run/run.ml:

let services = [ Service.Email_template.register () ]

Migrations

Run make sihl migrate to run pending migrations.

Usage

The API is documented in Sihl.Contract.Email_template.Sig.

OCaml

Innovation. Community. Security.