email.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:Sample-Code 作者: meigrafd 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号