mailgun-0.2: API binding for Mailgun

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Mailgun.Send

Synopsis

Documentation

type MailgunTags = [CIAscii] Source #

0 to 3 entries

tags :: HasMailgunSendOptions c => Lens' c MailgunTags Source #

dkim :: HasMailgunSendOptions c => Lens' c Bool Source #

deliverAt :: HasMailgunSendOptions c => Lens' c (Maybe UTCTime) Source #

track :: HasMailgunSendOptions c => Lens' c Bool Source #

trackClicks :: HasMailgunSendOptions c => Lens' c ClickTrack Source #

trackOpens :: HasMailgunSendOptions c => Lens' c Bool Source #

templateVariables :: HasMailgunSendOptions c => Lens' c (Map Text Value) Source #

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.