databrary-1: Databrary

Safe HaskellNone
LanguageHaskell2010

Service.Mail

Synopsis

Documentation

initMailer :: Mailer Source #

Make an instance of Mailer with default sendMail implementation, for use in settings where mailer is not being mocked

data Mailer Source #

Parts of mailer that can be mocked

Constructors

Mailer 

Fields

  • mlr :: MailHost -> MailPort -> MailUser -> MailPass -> Mail -> IO ()
     

type MonadMail c m = (MonadLog c m, MonadHas Mailer c m) Source #

wrapText :: Int64 -> Text -> Text Source #

Wrap text to the given line length where possibleby changing some ' ' to '\n'. >>> wrapText 10 $ TL.pack "hello there this is a test wherethereareexactlyvery long.nLines.nnThing with multiple.n" "hellonthere thisnis a testnwherethereareexactlyverynlong.nLines.nnThing withnmultiple.n"