Skip to content

owainlewis/sendgrid-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = "owain@owainlewis.com"
                                 , from = "noreply@vacancy.io"
                                 , subject = "Hello"
                                 , text = Just "Oh Hai there!"
                                 , html = Nothing }

About

Haskell library for delivering email via SendGrid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published