[issue29687] smtplib does not support proxy

2021-03-17 Thread Christian Heimes
Christian Heimes added the comment: It's not a public API but it's a stable API. It hasn't changed since Python 2.6 and commit 366d6262f81 from 2007. It's unlikely to change in the near future. -- ___ Python tracker

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Ryan Hiebert added the comment: Thank you, Christian. It sounds like you believe that we should view the `_get_socket` method as a public interface? That at least makes it possible to use a proxy socket through an appropriate mechanism, which solves my use-case. -- _

[issue29687] smtplib does not support proxy

2021-03-17 Thread Christian Heimes
Christian Heimes 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: c

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue29687] smtplib does not support proxy

2017-03-01 Thread Rares Vernica
New submission from Rares Vernica: smtplib does not support connections through a proxy. The accepted workaround is something like: ``` import smtplib import socks socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, proxy_host, proxy_port) socks.wrapmodule(smtplib) smtp = smtplib.SMTP() ``` The s