Description
Minimalistic SMTP client for Haskell.
Description
Minimalistic SMTP client that connects to the remote server, establishes secure communication, authenticates and transmits a MIME-encoded email message to specified recipients.
README.md
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