Skip to content

Releases: cole/aiosmtplib

v3.0.2

31 Jul 05:18
edc9f99
Compare
Choose a tag to compare
  • 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.

Full Changelog: v3.0.1...v3.0.2

v3.0.1

02 Nov 18:38
6accd81
Compare
Choose a tag to compare
  • Bugfix: 'Future exception was never retrieved' warning in SMTPProtocol after successful connection close and garbage collection.
  • Cleanup: Updated FlowControlMixin logic from stdlib

Full Changelog: v3.0.0...v3.0.1

3.0.0

02 Nov 18:37
139eb35
Compare
Choose a tag to compare
  • 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

v2.0.2

03 Jun 19:49
94926d6
Compare
Choose a tag to compare
  • 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

07 Jan 18:59
94f43c0
Compare
Choose a tag to compare

Changes

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

v2.0.0

28 Oct 03:41
Compare
Choose a tag to compare
  • BREAKING: Drop Python 3.5 and 3.6 support.

  • BREAKING: On connect, if the server supports STARTTLS, automatically try
    to upgrade the connection. STARTTLS after connect can be turned on or off
    explicitly by passing start_tls=True or start_tls=False respectively.

  • BREAKING: Remove deprecated loop keyword argument for the SMTP class.

  • Change: The source_address argument now takes a (addr, port) tuple that is
    passed as the local_addr param to asyncio.create_connection, allowing
    for binding to a specific IP. The new local_hostname argument that takes
    the value to be sent to the server with the EHLO/HELO message. This behaviour
    more closely matches smtplib.

    In order to not break existing usage, passing a string instead of a tuple to
    source_address will give a DeprecationWarning, and use the value as it if
    had been passed for local_hostname.

    Thanks @rafaelrds and @davidmcnabnz for raising and contributing work on this
    issue.

  • Bugfix: the mail_options and rcpt_options arguments to the send
    coroutine no longer cause errors

  • Cleanup: Refactored SMTP parent classes to remove complex inheritance
    structure.

  • Cleanup: Switched to asyncio.run for sync client methods.

  • Cleanup: Don't use private email.message.Message policy attribute (instead,
    set an appropriate policy based on message class)

v1.1.7

02 Sep 04:12
Compare
Choose a tag to compare

What's Changed

v1.1.6

09 May 18:21
Compare
Choose a tag to compare
  • Bugfix: fix authenticated test failures (credit @P-EB)

v1.1.5

25 Apr 17:32
Compare
Choose a tag to compare
  • Bugfix: avoid raising asyncio.CancelledError on connection lost
  • Bugfix: allow UTF-8 chars in usernames and password strings
  • Feature: allow bytes type args for login usernames and passwords

v1.1.4

12 Sep 17:53
Compare
Choose a tag to compare
  • Bugfix: parsing comma separated addresses in to header (credit @gjcarneiro)
  • Feature: add py.typed file (PEP 561, credit @retnikt)