1{-# LANGUAGE OverloadedStrings #-}
2import Text.Email.Validate
3import Network.API.Mandrill
6main = case validate "foo@example.com" of
7 Left err -> print $ "Invalid email!" ++ show err
8 Right addr -> runMandrill "SUPER-SECRET-TOKEN" $ do
9 let msg = "<p>My Html</p>"
10 res <- sendEmail (newTextMessage addr [addr] "Hello" msg)
12 MandrillSuccess k -> liftIO (print k)
13 MandrillFailure f -> liftIO (print f)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list