Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|
Higher level interface to ismtp.
- data SendMail = SendMail {}
- defSendMail :: Handle -> Handle -> SendMail
- sendMail :: (Applicative m, MonadIO m) => SendMail -> MailT a m a -> m (Either SomeException a)
- sendMail_ :: (Applicative m, MonadIO m) => SendMail -> MailT a m a -> m a
Execute sessions
Session configuration.
SendMail | |
|
defSendMail :: Handle -> Handle -> SendMailSource
Default values for SendMail
with the given input and output
handle respectively.
sendMail :: (Applicative m, MonadIO m) => SendMail -> MailT a m a -> m (Either SomeException a)Source
Execute the given mail session using the supplied configuration.
Please note that both handles must be set to binary mode and be
unbuffered. See hSetBuffering
and hSetBinaryMode
.