Safe Haskell | None |
---|---|
Language | Haskell2010 |
Authentication functions using MonadSmtp
.
Aims to eventually implement three widely-used SMTP authentication mechanisms: Login, Plain, and Cram-MD5.
Currently, Login is implemented.
TODO: Add Cram-MD5, other auth methods.
Synopsis
- login :: MonadSmtp m => UserName -> Password -> m ()
- type UserName = ByteString
- type Password = ByteString
Documentation
login :: MonadSmtp m => UserName -> Password -> m () Source #
Perform LOGIN authentication using the specified username and password.
TODO: better reporting of errors when login fails.
Currently just throws an SMTPError
indicating that
expectCode 235
failed.
type UserName = ByteString Source #
type Password = ByteString Source #