[issue29687] smtplib does not support proxy

Christian Heimes report at bugs.python.org
Wed Mar 17 13:24:26 EDT 2021


Christian Heimes <lists at cheimes.de> added the comment:

The Python standard library has no builtin support for socks proxy. I suggest that you report issues with socks library to the author of the package.

By the way the smptlib makes it really easy to override the socket object with a custom implementation:

class SocksSMTP(smtplib.SMTP):
    def _get_socket(self, host, port, timeout):
        return some_socket_like_object(...)

----------
nosy: +christian.heimes
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29687>
_______________________________________


More information about the Python-bugs-list mailing list