Jun-23-2017, 02:41 AM
My current projects are to make an email sender and email checker. My email sender works fine (using SMTPlib), but I can't find a way to make IMAPlib work so it scrapes my Gmail account. This is as far as I was able to get to:
How should I go about making this? Any other modules I should be using? Thanks.
import imaplib mail = imaplib.IMAP4_SSL('imap.gmail.com') mail.login('myemail', 'mypassword') mail.list() mail.select('inbox') print(mail.list())I am aiming for something like this youtube.com/watch?v=4rxNqIRpz1U I want it to print all the emails but so far, with the code above, I've only succeeded in making it print the amount of emails in the inbox.
How should I go about making this? Any other modules I should be using? Thanks.