assumpta-core-0.1.0.2: Core functionality for an SMTP client

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Assumpta.Auth

Description

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

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.