postmark-streams-0.1.0.3: Send email via Postmark using io-streams.

Safe HaskellNone
LanguageHaskell2010

Postmark

Description

Send email via Postmark using io-streams.

Synopsis

Documentation

send :: ByteString -> Email -> IO (Either Error Success) Source #

send token email sends a single mail via Postmark. token is your Postmark server token or the test-token, "POSTMARK_API_TEST" for testing purposes.

sendStream :: ByteString -> (OutputStream Email -> IO ()) -> (InputStream (Either Error Success) -> IO r) -> IO (Either Error r) Source #

sendStream token build process sends a stream of emails via Postmark's batch email API.

data Error Source #

Error type

Instances
Show Error Source # 
Instance details

Defined in Postmark

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #