Aiosmtplib

Latest version: v4.0.0

Safety actively analyzes 720896 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

4.0.0

-----

- **BREAKING**: Drop Python 3.8 support
- Bugfix: Run `socket.getfqdn` in thread to avoid blocking event loop
if `local_hostname` not provided (thanks Raidzin)
- Bugfix: Clear connect lock on connection lost, allowing client reconnect
- Bugfix: Allow socket connections to use TLS by providing `hostname` and
`use_tls=True`

3.0.2

-----

- Bugfix: Type of "send" is partially unknown with pyright
- Bugfix: Fix asyncio deadlock trying to reconnect after error (thanks Voldemat)
- Change: Switched from Poetry to build/hatch/twine for packaging.

3.0.1

-----

- Bugfix: 'Future exception was never retrieved' warning in SMTPProtocol
after successful connection close and garbage collection.
- Cleanup: Updated FlowControlMixin logic from stdlib

3.0.0

-----

- **BREAKING**: Drop Python 3.7 support.
- **BREAKING**: Positional arguments are now positional only, and keyword arguments
are keyword only.
- **BREAKING**: Passing ``source_address`` as a string argument (deprecated in 2.0)
is now an error. ``source_address`` takes a (addr, port) tuple that is used as
the ``local_addr`` param of ``asyncio.create_connection``, allowing for binding
to a specific IP. The ``local_hostname`` argument takes the value to be sent to
the server with the EHLO/HELO message (which is what ``source_address`` was used
for prior to 2.0).
- Change: don't use timeout value passed to ``connect`` everywhere,
only for the initial connection (credit wombatonfire)
- Change: removed unnecessary connection lost callback
- Change: revised handling for 'Future exception was never retrieved' warnings in
protocol

2.0.2

-----

- Bugfix: don't send extra EHLO/HELO before QUIT (credit ikrivosheev)
- Change: added SMTPConnectionResponseError for invalid response on
connect only (credit ikrivosheev)

2.0.1

-----

- Bugfix: "tests" and "docs" in the sdist should be includes, not packages,
so that they do not get put in ``site-packages``.

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.