All Projects → owainlewis → Sendgrid Hs

owainlewis / Sendgrid Hs

Licence: mit
Haskell library for delivering email via SendGrid

Programming Languages

haskell
3896 projects

SendGrid

A Haskell library for sending email with Sendgrid

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

module Main where

import           Network.Sendgrid.Api

sendWelcomeMessage :: IO (Maybe MailSuccess)
sendWelcomeMessage = sendEmail (Authentication "USER" "PASSWORD") message
    where message = EmailMessage { to = "[email protected]"
                                 , from = "[email protected]"
                                 , subject = "Hello"
                                 , text = Just "Oh Hai there!"
                                 , html = Nothing }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].