popmail-Python 登录邮箱
登录
以QQ邮箱为例
import poplib
email = '591465908@qq.com' password = input('Password: ') pop3_server = 'pop.qq.com'
server = poplib.POP3(pop3_server)
server.set_debuglevel(1)
print(server.getwelcome().decode('utf-8'))
server.user(email) server.pass_(password)
|
授权码申请:https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256
server.set_debuglevel(1)
server.apop( server.noop( server.stat( server.capa( server.pass_( server.stls( server.close( server.port server.timestamp server.dele( server.quit( server.top( server.encoding server.retr( server.uidl( server.file server.rpop( server.user( server.getwelcome( server.rset( server.utf8( server.host server.set_debuglevel( server.welcome server.list( server.sock
|