mail-pool-2.3.0: Preconfigured email connection pool on top of smtp.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Mail.Pool

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

Instances details
FromJSON SmtpCred Source # 
Instance details

Defined in Network.Mail.Pool

Show 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

createPoolConfig :: PoolSettings -> PoolConfig SMTPConnection Source #

allows manipulation of the underlying resourcepool config

optparse applicative

lenses

Exceptions

data ServiceAuthFailure a Source #

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

re exports

module Data.Pool