Skip to content

janestreet/async_smtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ca50ff5 · Nov 21, 2024
Aug 13, 2024
Aug 13, 2024
Oct 8, 2024
Oct 8, 2024
Aug 13, 2024
Oct 8, 2024
Mar 14, 2019
Aug 30, 2023
May 7, 2024
Nov 6, 2018
Feb 6, 2024
Jan 16, 2019
Nov 21, 2024
Aug 13, 2024
Apr 25, 2024

Repository files navigation

async_smtp is a library that implements SMTP (Simple Mail Transport Protocol), with functionality for acting as a client or server. In combination with the email_message library, it is used as the core of Jane Street’s internal MTA (Message Transfer Agent, aka “email server”) mailcore.

The library provides a namespace overlay and is intended to be used by starting your program with.

open Async_smtp

Users wishing to act as SMTP clients (i.e. to send an email) should look at the Simplemail module. E.g.:

Simplemail.send
  ~to_:[Email_address.of_string_exn "example@example.com"]
  ~subject:"Example message"
  (Simplemail.Content.text_utf8 "This is an example message.")

async_smtp supports more advanced features including TLS and various modes of SMTP authentication. See the sample directory for some examples.

If you need help, run into bugs, or have a feature request, you can contact the developers at <opensource-contacts@janestreet.com>.