Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. import imaplib
  2.  
  3. user = 'xxx@gmail.com'
  4. password = 'xxx'
  5. imap_url = 'imap.gmail.com'
  6.  
  7. con = imaplib.IMAP4_SSL(imap_url)
  8. con.login(user=user, password=password)
  9. print con.list()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement