我试着在我的Mac上安装poplib,我试着用Conda,pip和Homebrew,但是我无法安装这个模块。你有什么建议可以让我试试或者换个模块吗?我使用的是与Anaconda一起安装的Python 3.5.1。谢谢!
发布于 2016-06-16 22:47:07
我使用impalib解决了问题,并使用smtplib解决了一个错误,但现在我遇到了更多的问题……我无法使用smtp服务器进行身份验证,也无法连接到imap服务器。这是我的代码:
class EmailController:
def __init__(self):
# Check for connection, connect to servers.
internetConnection = requests.get('http://www.google.com')
while not internetConnection:
internetConnection = requests.get('http://www.google.com')
self.addrFrom = 'My address'
print('connecting smtp')
self.smtpServer = smtplib.SMTP('smtp-mail.outlook.com', 587)
print('starting tls')
self.smtpServer.starttls()
print('authenticating')
self.smtpServer.login(self.addrFrom, 'password') #Here it gets stuck
print('connecting imap')
self.imapServer = imaplib.IMAP4('imap-mail.outlook.com', 993) #Here is gets stuck too
print('starting tls')
self.imapServer.starttls()可能是服务器的问题,还是我做错了什么?如何在imaplib上启动SSL加密?
https://stackoverflow.com/questions/37843541
复制相似问题