@hackage sendgrid-haskell1.0

Sengrid API

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