jhickner / smtp-mail

Making it easy to send SMTP email from Haskell
BSD 3-Clause "New" or "Revised" License
75 stars 32 forks source link

Add login convenience function #4

Closed dubiousdavid closed 11 years ago

dubiousdavid commented 11 years ago

Can you please add the following login function:

login :: SMTPConnection -> Username -> Password -> IO (ReplyCode, ByteString)
login con user pass = sendCommand con (AUTH LOGIN user pass)

This will help facilitate the following use case:

  1. Connection to SMTP server
  2. Authenticate
  3. Send multiple emails
  4. Disconnect when done

Thanks, David