Safe Haskell | None |
---|---|
Language | Haskell2010 |
- Network.Mail.Mime types (re-exports)
- data AuthType = LOGIN
- type UserName = String
- type Password = String
- data Command
- = HELO ByteString
- | EHLO ByteString
- | MAIL ByteString
- | RCPT ByteString
- | DATA
- | EXPN ByteString
- | VRFY ByteString
- | HELP ByteString
- | NOOP
- | RSET
- | QUIT
- | STARTTLS
- toByteString :: Command -> ByteString
- type ReplyCode = Int
- data Response
- = Ok
- | SystemStatus
- | HelpMessage
- | ServiceReady
- | ServiceClosing
- | UserNotLocal
- | CannotVerify
- | StartMailInput
- | ServiceNotAvailable
- | MailboxUnavailable
- | ErrorInProcessing
- | InsufficientSystemStorage
- | SyntaxError
- | ParameterError
- | CommandNotImplemented
- | BadSequence
- | ParameterNotImplemented
- | MailboxUnavailableError
- | UserNotLocalError
- | ExceededStorage
- | MailboxNotAllowed
- | TransactionFailed
- data Address :: * = Address {
- addressName :: Maybe Text
- addressEmail :: Text
Documentation
SMTP command description.
toByteString :: Command -> ByteString Source
Dump an SMTP command to a bytestring, suitable for transmission to a server. No CRLF is appended.
This poor datatype... It doesn't look like it's used anywhere