Safe Haskell | None |
---|---|
Language | Haskell2010 |
Send email via Postmark using io-streams.
Synopsis
- send :: ByteString -> Email -> IO (Either Error Success)
- sendStream :: ByteString -> (OutputStream Email -> IO ()) -> (InputStream (Either Error Success) -> IO r) -> IO (Either Error r)
- data Error
Documentation
send :: ByteString -> Email -> IO (Either Error Success) Source #
sends a single mail via Postmark.
send
token emailtoken
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 #
sends a stream of emails
via Postmark's batch email API.sendStream
token build process