postmark-0.2.7: Library for postmarkapp.com HTTP Api

Safe HaskellNone
LanguageHaskell98

Network.Api.Postmark.Data

Contents

Synopsis

Request types

Email

data Email Source #

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!"
  }
Instances
ToJSON Email Source # 
Instance details

Defined in Network.Api.Postmark.Data

Email with template

Track links

data TrackLinks Source #

When “link tracking” is enabled, Postmark will record statistics when a user clicks on a link in an email. You can use this feature to determine if a particular recipient has clicked a link that was emailed to them.

https://postmarkapp.com/developer/user-guide/tracking-links#enabling-link-tracking

Constructors

None

No links will be replaced or tracked.

HtmlAndText

Links will be replaced in both HTML and text bodies.

HtmlOnly

Links will be replaced in only the HTML body. You may want this option if you do not want encoded tracking links to appear in the plain text of an email.

TextOnly

Links will be replaced in only the text body.

Attachment

Response type

data Sent Source #

Instances
Eq Sent Source # 
Instance details

Defined in Network.Api.Postmark.Data

Methods

(==) :: Sent -> Sent -> Bool #

(/=) :: Sent -> Sent -> Bool #

Show Sent Source # 
Instance details

Defined in Network.Api.Postmark.Data

Methods

showsPrec :: Int -> Sent -> ShowS #

show :: Sent -> String #

showList :: [Sent] -> ShowS #

FromJSON Sent Source # 
Instance details

Defined in Network.Api.Postmark.Data

Internal Json tools

oljson :: ToJSON b => Text -> [a] -> ([a] -> b) -> Maybe (Text, Value) Source #