def connectMail():
global pop_conn
pop_conn = poplib.POP3_SSL(mailServer, mailPort)
pop_conn.set_debuglevel(mailDebug)
try:
pop_conn.user(mailLogin)
pop_conn.pass_(mailPass)
print("Logged in %s as %s" % (mailServer, mailLogin))
return True
except:
print("Error connecting "+ mailServer)
return False
评论列表
文章目录