diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,10 @@
   - Indicate if changes are major, minor, or patch changes.
 ```
 
+## 0.5.0.1
+
+- [#63](https://github.com/haskell-github-trust/smtp-mail/pull/63) Switch to `ram` because the `memory` package is no longer maintained.
+
 ## 0.5.0.0
 
 - Adds support for OAuth authentication with a new function `sendMailWithLoginOAuthSTARTTLS`.
diff --git a/smtp-mail.cabal b/smtp-mail.cabal
--- a/smtp-mail.cabal
+++ b/smtp-mail.cabal
@@ -1,5 +1,5 @@
 name:                smtp-mail
-version:             0.5.0.0
+version:             0.5.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
@@ -11,7 +11,7 @@
 category:            Network
 build-type:          Simple
 cabal-version:       2.0
-tested-with:         GHC ==9.6.6
+tested-with:         GHC ==9.12.2
 
 extra-source-files:
     README.md
@@ -35,14 +35,14 @@
                , base16-bytestring
                , base64-bytestring
                , bytestring
-               , crypton-connection ^>= 0.3.1 || ^>= 0.4.0
-               , data-default-class ^>= 0.1.2.0
+               , crypton-connection ^>= 0.4.6
+               , data-default-class ^>= 0.2.0.0
                , filepath
                , mime-mail
                , network
                , network-bsd
                , text
-               , crypton == 0.* || ^>= 1.0
-               , memory
+               , crypton ^>= 1.1
+               , ram ^>= 0.21.1
 
   ghc-options: -Wall -fwarn-tabs
