sendgrid-haskell: Sengrid API

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

A Haskell SendGrid API client


[Skip to Readme]

Properties

Versions 1.0, 1.0
Change log None available
Dependencies aeson, base (>=4 && <5), 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 by owainlewis at 2015-04-21T18:45:11Z

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for sendgrid-haskell-1.0

[back to package description]

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