Popularity
5.4
Growing
Activity
0.0
Stable
9
3
3
Monthly Downloads: 10
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
ses-html alternatives and similar packages
Based on the "Email" category.
Alternatively, view ses-html alternatives based on common mentions on social networks and blogs.
-
mail-pool
A small project for doing an smtp email pool (and cli stuff for opening it) -
attomail
minimal mail delivery agent (MDA) for local mail with maildir support - a Haskell re-implementation of femtomail
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
Do you think we are missing an alternative of ses-html or a related project?
README
ses-html
Send blaze-html emails via the AWS SES API using http-streams http://hackage.haskell.org/package/ses-html
Example
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE LambdaCase #-}
module Main where
import Network.SES ( sendEmailBlaze
, PublicKey(..)
, SecretKey(..)
, SESResult(..)
, SESError
, Region(USEast1)
)
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
main :: IO ()
main = sendMail >>= \case
Error _ -> putStrLn "There was an error :("
Success -> putStrLn "Email sent successfully!"
sendMail :: IO SESREsult
sendMail = sendEmailBlaze publicKey secretKey region from to subject html
where
publicKey = PublicKey "public key goes here"
secretKey = SecretKey "secret key goes here"
region = USEast1
from = "[email protected]"
to = ["[email protected]"]
subject = "Test Subject"
html = H.html $ do
H.body $ do
H.img H.! A.src "http://haskell-lang.org/static/img/logo.png"
H.h1 "Html email! Hooray"
Result
*Note that all licence references and agreements mentioned in the ses-html README section above
are relevant to that project's source code only.