Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type MessageID = Text
- type MailgunTags = [CIAscii]
- data ClickTrack
- _DoTrackClick :: Prism' ClickTrack ()
- _DontTrackClick :: Prism' ClickTrack ()
- _TrackClickHtmlOnly :: Prism' ClickTrack ()
- data MailgunSendOptions = MSO {
- _tags :: MailgunTags
- _dkim :: Bool
- _deliverAt :: Maybe UTCTime
- _track :: Bool
- _trackClicks :: ClickTrack
- _trackOpens :: Bool
- _templateVariables :: Map Text Value
- tags :: HasMailgunSendOptions c => Lens' c MailgunTags
- dkim :: HasMailgunSendOptions c => Lens' c Bool
- deliverAt :: HasMailgunSendOptions c => Lens' c (Maybe UTCTime)
- track :: HasMailgunSendOptions c => Lens' c Bool
- trackClicks :: HasMailgunSendOptions c => Lens' c ClickTrack
- trackOpens :: HasMailgunSendOptions c => Lens' c Bool
- templateVariables :: HasMailgunSendOptions c => Lens' c (Map Text Value)
- send :: (HasMailgunConfig c, MonadIO m, MonadThrow m, MonadReader c m) => Maybe MailgunSendOptions -> [Address] -> Mail -> m MessageID
- sending :: (HasMailgunConfig c, MonadIO m, MonadThrow m, MonadReader c m, ToJSON t) => Maybe MailgunSendOptions -> FromAddress -> CcAddresses -> BccAddresses -> Subject -> These HtmlBody TextBody -> InlineAttachments -> Attachments -> ProcessT m (Address, t) MessageID
Documentation
type MailgunTags = [CIAscii] Source #
0 to 3 entries
data ClickTrack Source #
Instances
Eq ClickTrack Source # | |
Defined in Network.Mail.Mailgun.Send (==) :: ClickTrack -> ClickTrack -> Bool # (/=) :: ClickTrack -> ClickTrack -> Bool # | |
Ord ClickTrack Source # | |
Defined in Network.Mail.Mailgun.Send compare :: ClickTrack -> ClickTrack -> Ordering # (<) :: ClickTrack -> ClickTrack -> Bool # (<=) :: ClickTrack -> ClickTrack -> Bool # (>) :: ClickTrack -> ClickTrack -> Bool # (>=) :: ClickTrack -> ClickTrack -> Bool # max :: ClickTrack -> ClickTrack -> ClickTrack # min :: ClickTrack -> ClickTrack -> ClickTrack # | |
Show ClickTrack Source # | |
Defined in Network.Mail.Mailgun.Send showsPrec :: Int -> ClickTrack -> ShowS # show :: ClickTrack -> String # showList :: [ClickTrack] -> ShowS # |
_DoTrackClick :: Prism' ClickTrack () Source #
_DontTrackClick :: Prism' ClickTrack () Source #
_TrackClickHtmlOnly :: Prism' ClickTrack () Source #
data MailgunSendOptions Source #
MSO | |
|
Instances
Show MailgunSendOptions Source # | |
Defined in Network.Mail.Mailgun.Send showsPrec :: Int -> MailgunSendOptions -> ShowS # show :: MailgunSendOptions -> String # showList :: [MailgunSendOptions] -> ShowS # |
tags :: HasMailgunSendOptions c => Lens' c MailgunTags Source #
trackClicks :: HasMailgunSendOptions c => Lens' c ClickTrack Source #
trackOpens :: HasMailgunSendOptions c => Lens' c Bool Source #
templateVariables :: HasMailgunSendOptions c => Lens' c (Map Text Value) Source #
send :: (HasMailgunConfig c, MonadIO m, MonadThrow m, MonadReader c m) => Maybe MailgunSendOptions -> [Address] -> Mail -> m MessageID Source #
Sends a given email.
sending :: (HasMailgunConfig c, MonadIO m, MonadThrow m, MonadReader c m, ToJSON t) => Maybe MailgunSendOptions -> FromAddress -> CcAddresses -> BccAddresses -> Subject -> These HtmlBody TextBody -> InlineAttachments -> Attachments -> ProcessT m (Address, t) MessageID Source #
Takes an email, ignoring the to addresses, and sends it to all the addresses streamed in, paramterized by the JS.Values which can be used in the templating.