IMAPbot Script to read specific emails using IMAP Gmail If you are using a Gmail account, you have to enable insecure apps. More info here https://support.google.com/accounts/answer/6010255?hl=en