2016-06-15 18 views
0

Macにpoplibをインストールしようとしましたが、Conda、pipとHomebrewを試しましたが、このモジュールをインストールできませんでした。 私は試してみるか、別のモジュールをお勧めしますか? AnacondaとともにインストールされたPython 3.5.1を使用しています。 ありがとう!Mac OS 10.10.5にpoplibをインストール

+0

あなたのエラーは何ですか? – andrefurquin

答えて

0

私は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暗号化を始めますか?

関連する問題