The sendgrid-haskell package

[maintain]

A Haskell SendGrid API client


[Skip to ReadMe]

Properties

Versions1.0, 1.0
Dependenciesaeson, base (==4.*), bytestring, containers, exceptions, http-conduit, monad-control, text, transformers [details]
LicenseMIT
AuthorOwain Lewis
Maintainerowain@owainlewis.com
CategoryWeb
Home pagehttps://owainlewis.com
UploadedTue Apr 21 18:45:11 UTC 2015 by owainlewis

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for sendgrid-haskell-1.0

Sendgrid API

Haskell utility for sending Email with Sendgrid

You will need a Sendgrid username and password to use this library.


import qualified Network.Sendgrid.Api as Sendgrid

-- Create an Email message

message = SendGrid.EmailMessage { to      = "owain@owainlewis.com"
                                , from    = "noreply@vacancy.io"
                                , subject = "Hello World"
                                , text    = "OH HAI"
-- Send it ! : )

SendGrid.sendEmail (Authentication "USERNAME" "PASSWORD") message