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

Adds support for OAuth authentication #38

Open robstewart57 opened 1 year ago

robstewart57 commented 1 year ago

This change adds sendMailWithLoginOAuthSTARTTLS to the Network.Mail.SMTP module. This function accepts a username and an OAuth token and encodes them with base 64 in SASL XOAUTH2 format, for SMTP OAUTH authentication.

This commit implements this feature request: https://github.com/jhickner/smtp-mail/issues/34