@hackage ehlo0.1.0.0
Minimalistic SMTP client for Haskell
Categories
License
MIT
Maintainer
mordae@anilinux.org
Links
Versions
- 0.1.0.0 Sat, 9 Jul 2022
Installation
Dependencies (8)
- base >=4.13 && <5
- bytestring >=0.10
- text >=1.2
- transformers >=0.5
- HsOpenSSL >=0.11
- attoparsec >=0.14 Show all…
Dependents (0)
ehlo
Minimalistic SMTP client for Haskell
It has a single mission:
- Connect to a SMTP server and setup a secure channel,
- authenticate, if desired,
- say
EHLO
,MAIL FROM
,RCPT TO
andDATA
, - transmit our email, taking care to properly escape it
.
- 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