| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Network.Api.Postmark.Data
- data Email = Email {}
- data Attachment = Attachment {}
- data EmailWithTemplate = EmailWithTemplate {
- templateId :: Int
- templateModel :: Map Text Text
- inlineCss :: Bool
- emailFrom' :: Text
- emailTo' :: [Text]
- emailCc' :: [Text]
- emailBcc' :: [Text]
- emailTag' :: Maybe Text
- emailReplyTo' :: Text
- emailHeaders' :: Map Text Text
- emailAttachments' :: [Attachment]
- defaultEmail :: Email
- defaultEmailWithTemplate :: EmailWithTemplate
- data Sent = Sent {}
- ojson :: ToJSON a => Text -> Maybe a -> Maybe (Text, Value)
- oljson :: ToJSON b => Text -> [a] -> ([a] -> b) -> Maybe (Text, Value)
- omjson :: ToJSON a => Text -> Map Text a -> Maybe (Text, Value)
- toText :: ByteString -> Text
Request types
Email data type. It is recommended that you use the defaultEmail function and selector syntax to build an email, e.g.:
defaultEmail {
emailFrom = "you@yourdomain.com"
, emailTo = "person@example.com"
, emailSubject = "This is an example email!"
}Constructors
data EmailWithTemplate Source #
Constructors
| EmailWithTemplate | |
Fields
| |
Instances
defaultEmail :: Email Source #
Response types
Constructors
| Sent | |
Fields | |
Internal Json tools
toText :: ByteString -> Text Source #