{-# OPTIONS -fno-warn-missing-signatures #-} {-# LANGUAGE OverloadedStrings #-} import Network.HaskellNet.SMTP import Network.HaskellNet.Auth import Network.Mail.Mime import qualified Data.Text as T import qualified Data.ByteString as S import qualified Data.ByteString.Lazy as B -- | Your settings server = "smtp.test.com" port = toEnum 25 username = "username" password = "password" authType = PLAIN from = "test@test.com" to = "to@test.com" subject = "Network.HaskellNet.SMTP Test :)" plainBody = "Hello world!" htmlBody = "