WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

WASH.Mail.MIME

Documentation

data DOC Source

Constructors

DOC 

Fields

mediatype :: String
 
subtype :: String
 
parameters :: [KV]

parameters of the media type

filename :: String

suggested filename, OBSOLETE

contentDisposition :: ContentDisposition

sets Content-Disposition, e.g. for suggesting a filename depending on mediatype only one of the following is relevant:

messageData :: String

data, only relevant for binary data

textLines :: [String]

lines, only relevant for text mediatypes

parts :: [DOC]

data, only relevant for multipart mediatypes

Instances

data SendMode Source

Constructors

EightBit 
SevenBit 

data SendControl Source

Constructors

SendControl 

Fields

sendH :: Handle
 
sendMode :: SendMode
 

data CRLF Source

Constructors

CRLF 

Instances

data Mail Source

Constructors

Mail 

Fields

to :: [String]
 
subject :: String
 
cc :: [String]
 
bcc :: [String]
 
headers :: [Header]
 
contents :: DOC
 

Instances

class Send m whereSource

Methods

send :: m -> IO ()Source

hSend :: SendControl -> m -> IO ()Source