ehlo: Minimalistic SMTP client for Haskell

[ library, mit, network ] [ Propose Tags ] [ Report a vulnerability ]

Minimalistic SMTP client that connects to the remote server, establishes secure communication, authenticates and transmits a MIME-encoded email message to specified recipients.


[Skip to Readme]

Modules

  • Network
    • SMTP
      • Network.SMTP.Client

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log Changelog.md
Dependencies attoparsec (>=0.14), base (>=4.13 && <5), bytestring (>=0.10), hookup (>=0.6), HsOpenSSL (>=0.11), network (>=3.1), text (>=1.2), transformers (>=0.5) [details]
License MIT
Copyright Jan Hamal Dvořák
Author Jan Hamal Dvořák
Maintainer mordae@anilinux.org
Category Network
Home page https://github.com/mordae/ehlo#readme
Bug tracker https://github.com/mordae/ehlo/issues
Source repo head: git clone https://github.com/mordae/ehlo.git
Uploaded by mordae at 2022-07-09T17:00:57Z
Distributions NixOS:0.1.0.0
Downloads 100 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2022-07-09 [all 2 reports]

Readme for ehlo-0.1.0.0

[back to package description]

ehlo

Minimalistic SMTP client for Haskell

It has a single mission:

  1. Connect to a SMTP server and setup a secure channel,
  2. authenticate, if desired,
  3. say EHLO, MAIL FROM, RCPT TO and DATA,
  4. transmit our email, taking care to properly escape it.
  5. Finish and QUIT.

Usage:

let settings = SmtpSettings { smtpHost    = "example.org"
                            , smtpSender  = "mailer.example.org"
                            , smtpOverSSL = False
                            , smtpSecure  = True
                            , smtpPort    = 587
                            , smtpAuth    = Just ("login", "password")
                            , smtpDebug   = False
                            }

sendMail settings sender [recipient] email