hailgun-0.4.1.7: Mailgun REST api interface for Haskell.

Safe HaskellNone
LanguageHaskell2010

Mail.Hailgun.Attachment

Synopsis

Documentation

createAttachment :: FilePath -> ByteString -> Attachment Source #

Creates an attachment from a filepath and strict ByteString.

createAttachmentLazy :: FilePath -> ByteString -> Attachment Source #

Creates an attachment from a filepath and lazy ByteString.

addAttachment :: Attachment -> Endo HailgunMessage Source #

Allows you to add an attachment to an already created HailgunMessage. But please note that it will only add your attachment as a standard attachment. Inline attachments must be added at the time that the HailgunMessage was created.