Message288765
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 side-effects of `socks.wrapmodule` impact other libraries which don't need to use the proxy, like `requests`. See here for a disucssion https://github.com/kennethreitz/requests/issues/3890 |
|
Date |
User |
Action |
Args |
2017-03-01 17:29:32 | rares | set | recipients:
+ rares |
2017-03-01 17:29:32 | rares | set | messageid: <1488389372.28.0.822188705276.issue29687@psf.upfronthosting.co.za> |
2017-03-01 17:29:32 | rares | link | issue29687 messages |
2017-03-01 17:29:32 | rares | create | |
|