The sendgrid-haskell package

[Tags:library, mit]

A Haskell SendGrid API client


[Skip to Readme]

Properties

Versions 1.0
Dependencies aeson, base (==4.*), bytestring, containers, exceptions, http-conduit, monad-control, text, transformers [details]
License MIT
Author Owain Lewis
Maintainer owain@owainlewis.com
Category Web
Home page https://owainlewis.com
Uploaded Tue Apr 21 18:45:26 UTC 2015 by owainlewis
Distributions NixOS:1.0
Downloads 179 total (8 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-04-21 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for sendgrid-haskell

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