Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support crypton-connection 0.4.0 #11

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ A template is provided:
- Indicate if changes are major, minor, or patch changes.
```

## 0.4.0.1

- [#11](https://github.com/haskell-github-trust/smtp-mail/pull/11) @spencerjanssen
- Support `crypton-connection-0.4.0`

## 0.4.0.0

- [#5](https://github.com/haskell-github-trust/smtp-mail/pull/5) @spencerjanssen
Expand Down
4 changes: 3 additions & 1 deletion Network/Mail/SMTP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ import qualified Data.Text.Lazy as TL
import qualified Data.Text.Lazy.Encoding as TL
import Data.Text.Encoding

import Data.Default.Class (def)

data SMTPConnection = SMTPC !Conn.Connection ![ByteString]

instance Eq SMTPConnection where
Expand All @@ -93,7 +95,7 @@ connectSMTPSTARTTLS :: HostName -- ^ name of the server
connectSMTPSTARTTLS hostname = connectSMTPSTARTTLS' hostname 587

defaultTlsSettings :: Conn.TLSSettings
defaultTlsSettings = Conn.TLSSettingsSimple False False False
defaultTlsSettings = def

-- | Connect to an SMTP server with the specified host via SMTPS on port (465).
-- According to RFC 8314 this should be preferred over STARTTLS if the server
Expand Down
5 changes: 3 additions & 2 deletions smtp-mail.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: smtp-mail
version: 0.4.0.0
version: 0.4.0.1
synopsis: Simple email sending via SMTP
description: This packages provides a simple interface for mail over SMTP. Please see the README for more information.
homepage: http://github.com/haskell-github-trust/smtp-mail
Expand Down Expand Up @@ -35,7 +35,8 @@ library
, base16-bytestring
, base64-bytestring
, bytestring
, crypton-connection ^>= 0.3
, crypton-connection ^>= 0.3.1 || ^>= 0.4.0
, data-default-class ^>= 0.1.2.0
, filepath
, mime-mail
, network
Expand Down
Loading