Skip to content

Upgrading aiosmtplib 1 to 2

Breaking1.1.7 → 2.0.2Breaking2Platform1Changed2Fixed3Other3

BreakingUpgrade verdict

2 breaking changes and a platform requirement change.

  • BREAKING: Remove deprecated loop keyword argument for the SMTP class.
  • BREAKING: On connect, if the server supports STARTTLS, automatically try to upgrade the connection.
  • BREAKING: Drop Python 3.5 and 3.6 support.
3 items need code or config changes

Python requirement changed in 2.0.0b0: >=3.5.2,<4.0.0 → >=3.7,<4.0.

Breaking2
BREAKING: Remove deprecated loop keyword argument for the SMTP class.
loop
BREAKING: On connect, if the server supports STARTTLS, automatically try to upgrade the connection.
start_tls=Truestart_tls=False
Platform1
BREAKING: Drop Python 3.5 and 3.6 support.