Seite 1 von 1

How can I fetch emails through a proxy?

Verfasst: Montag 7. Oktober 2013, 13:11
von fox12345
Dear friends,
I want to write basic program to send email. so i use this script. as well as want to use proxy. So how to do it? please help me...
" exactly i want to send email through a proxy or proxy chain "
How to develop this code?

Code: Alles auswählen



import smtplib
fromaddr = ''
toaddrs = ''
msg = ''

username = ''
password = ''

server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo()
server.starttls()
server.ehlo()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()



Re: How can I fetch emails through a proxy?

Verfasst: Montag 7. Oktober 2013, 14:15
von BlackJack

Re: How can I fetch emails through a proxy?

Verfasst: Dienstag 8. Oktober 2013, 05:37
von fox12345
I am beginner to python. So some advanced script are not understand. Please give me a some basic example to do it....

Re: How can I fetch emails through a proxy?

Verfasst: Dienstag 8. Oktober 2013, 08:15
von BlackJack
@fox12345: Maybe you should start with Learn Python The Hard Way then. Don't get fooled by the title — it is a tutorial explicitly aimed at absolute beginners in programming and Python.