-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy support #51
Comments
I don't understand the relation to yagmail? |
Just anohter mail related feature to add, nothing special
|
Oh I have overseen this last message. Could you perhaps give an example for a proxy, I think it would be interesting way. Would we we need an extra library for this functionality? I found this online: import smtplib
import socks
#socks.setdefaultproxy(TYPE, ADDR, PORT)
socks.setdefaultproxy(socks.SOCKS5, 'proxy.proxy.com', 8080)
socks.wrapmodule(smtplib) # in our case yagmail
<continue with yagmail like usual> Is something like how you had it in mind? |
I tried to send email with socks5 proxy, here is the code: Got AttributeError: module 'yagmail' has no attribute 'socket', how to fix this issue? @kootenpv |
@xk7612 I have no idea to be honest. Maybe you could try |
this is great |
@chenerg Did this code snippet work for you? Then indeed maybe we can add it like this:
|
@kootenpv thank you, I try to rewrite yagmail.SMTP, it works! |
@ds19991999 So we could add the keyword argument |
ps : socks project is clearly not working and outdated,
The text was updated successfully, but these errors were encountered: