mail-pool-2.2.3: Preconfigured email connection pool on top of smtp.

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Pool

Contents

Description

SMTP is s an incredibly stable and well supported protocol. Using this rather then API's prevents vendorlocking.

This module provides a ready to go connection pool for SMTP. Which has been used in various deployments already.

Synopsis

Documentation

sendEmail :: MonadIO m => Pool SMTPConnection -> Mail -> m () Source #

Send a Mail with help of a connection pool.

smtpPool :: PoolSettings -> IO (Pool SMTPConnection) Source #

Construct a connection pool from settings.

defSettings :: SmtpCred -> PoolSettings Source #

Create settings with good defaults from SmtpCred.

data SmtpCred Source #

Authentication information for the SMTP connection

Instances
Show SmtpCred Source # 
Instance details

Defined in Network.Mail.Pool

FromJSON SmtpCred Source # 
Instance details

Defined in Network.Mail.Pool

data PoolSettings Source #

This allows you to override the default settings from defSettings

Constructors

PoolSettings 

Fields

specify connection type

optparse applicative

lenses

Exceptions

data ServiceAuthFailure a Source #

Failed to authetnicate with some upstream service (smtp for example)

re exports

module Data.Pool