Skip to content

Commit 7a3aca0

Browse files
Merge pull request #482 from supertokens/fix/relax-aiosmtplib
fix: relax constraint on aiosmtplib lib
2 parents 3b7acbe + 1655894 commit 7a3aca0

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [unreleased]
1010

11+
## [0.18.10] - 2024-04-05
12+
13+
- Relax constraints on `aiosmtplib` dependency version.
1114

1215
## [0.18.9] - 2024-03-14
1316

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
aiosmtplib==1.1.6
1+
aiosmtplib>=1.1.6,<4.0.0
22
anyio==3.5.0
33
asgiref==3.5.2
44
astroid==2.9.3

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
setup(
7272
name="supertokens_python",
73-
version="0.18.9",
73+
version="0.18.10",
7474
author="SuperTokens",
7575
license="Apache 2.0",
7676
author_email="[email protected]",
@@ -110,7 +110,7 @@
110110
"Deprecated==1.2.13",
111111
"phonenumbers==8.12.48",
112112
"twilio==7.9.1",
113-
"aiosmtplib==1.1.6",
113+
"aiosmtplib>=1.1.6,<4.0.0",
114114
"pkce==1.0.3",
115115
],
116116
python_requires=">=3.7",

supertokens_python/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from __future__ import annotations
1515

1616
SUPPORTED_CDI_VERSIONS = ["3.0"]
17-
VERSION = "0.18.9"
17+
VERSION = "0.18.10"
1818
TELEMETRY = "/telemetry"
1919
USER_COUNT = "/users/count"
2020
USER_DELETE = "/user/remove"

supertokens_python/ingredients/emaildelivery/services/smtp.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ async def _connect(self):
3737
if self.smtp_settings.secure:
3838
# Use TLS from the beginning
3939
mail = aiosmtplib.SMTP(
40-
self.smtp_settings.host,
41-
self.smtp_settings.port,
40+
hostname=self.smtp_settings.host,
41+
port=self.smtp_settings.port,
4242
use_tls=True,
4343
tls_context=tls_context,
4444
)
4545
else:
4646
# Start without TLS (but later try upgrading)
4747
mail = aiosmtplib.SMTP(
48-
self.smtp_settings.host, self.smtp_settings.port, use_tls=False
48+
hostname=self.smtp_settings.host,
49+
port=self.smtp_settings.port,
50+
use_tls=False,
4951
)
5052

5153
await mail.connect() # type: ignore

0 commit comments

Comments
 (0)