Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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!" }
data Attachment Source #
data EmailWithTemplate Source #
EmailWithTemplate | |
|
defaultEmail :: Email Source #
Response types
Internal Json tools
toText :: ByteString -> Text Source #