Stability | experimental |
---|---|
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 (Either SomeException a) m a -> m (Either SomeException a)
- sendMail_ :: (Applicative m, MonadIO m) => SendMail -> MailT (Either SomeException 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 (Either SomeException 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 the
input handle should be unbuffered (NoBuffering
).
sendMail_ :: (Applicative m, MonadIO m) => SendMail -> MailT (Either SomeException a) m a -> m aSource
Like sendMail
, but throws an exception on error.