| Stability | experimental |
|---|---|
| Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Network.Smtp.Types
Contents
Description
Types used by ismtp.
- type Mail r a = MailT r IO a
- type MailT r m = Iteratee SmtpResponse (StateT r MailConfig m)
- type StringMailT r m = Iteratee ByteString (StateT r MailConfig m)
- data Extension = Extension
- data MailConfig = MailConfig {}
- data SmtpCommand
- data SmtpException = SmtpException {}
- data SmtpResponse = SmtpResponse {}
Mail monad
type MailT r m = Iteratee SmtpResponse (StateT r MailConfig m)Source
The MailT monad transformer encapsulates an SMTP session.
type StringMailT r m = Iteratee ByteString (StateT r MailConfig m)Source
Convenient type alias for raw streams. Needed by
Network.Smtp.Monad.runMailT.
Other types
SMTP service extension.
Constructors
| Extension | We don't support any extensions yet. |
data MailConfig Source
Mail session configuration.
Constructors
| MailConfig | |
Fields
| |
data SmtpCommand Source
Failed SMTP command (used by SmtpException).
Constructors
| SmtpWelcomeCmd | Waiting for welcome message. |
| SmtpHelloCmd ByteString | EHLO or HELO with domain. |
| SmtpMailFromCmd ByteString | MAIL FROM with address. |
| SmtpRcptToCmd ByteString | RCPT TO with address. |
| SmtpDataCmd | DATA. |
| SmtpResetCmd | RSET. |
| SmtpQuitCmd | QUIT. |
data SmtpResponse Source
SMTP response.
Constructors
| SmtpResponse | |
Fields
| |
Instances