ismtp-3.0.1: Advanced ESMTP library

MaintainerErtugrul Soeylemez <es@ertes.de>

Network.Smtp.Types

Contents

Description

Types used by ismtp.

Synopsis

Mail monad

type Mail r = MailT r IOSource

The Mail monad is MailT over IO.

type MailT r m = StateT r MailConfig (Iteratee SmtpResponse m)Source

The MailT monad transformer encapsulates an SMTP session.

SMTP service extensions

data Extension Source

SMTP service extension.

Constructors

AuthExt (Set AuthMethod)

Authentication extension.

data AuthMethod Source

Authentication methods for the SMTP authentication extension.

Constructors

AuthMethod

We don't know any authentication methods yet.

Other types

data MailConfig Source

Mail session configuration.

Constructors

MailConfig 

Fields

mailExtensions :: Set Extension

Supported extensions.

mailHandle :: Handle

Connection handle.

mailWriteTimeout :: Int

Write timeout in milliseconds.

data SmtpCommand Source

Failed SMTP command (used by SmtpException).

Constructors

SmtpDataCmd

DATA.

SmtpHelloCmd ByteString

EHLO or HELO with domain.

SmtpMailFromCmd ByteString

MAIL FROM with address.

SmtpQuitCmd

QUIT.

SmtpRcptToCmd ByteString

RCPT TO with address.

SmtpResetCmd

RSET.

SmtpVerifyCmd ByteString

VRFY with the given user name.

SmtpWelcomeCmd

Waiting for welcome message.

data SmtpResponse Source

SMTP response.

Constructors

SmtpResponse 

Fields

smtpCode :: Integer

Three digit response code.

smtpMessages :: Vector ByteString

Messages sent with the code.