correction on reading emails

This commit is contained in:
2023-04-05 11:06:44 +02:00
parent 651805b291
commit d457e0c1b9
+1 -1
View File
@@ -39,7 +39,7 @@ class MailReader():
# create an IMAP4 class with SSL
imap = create_imap(self.login)
# authenticate
type, dat = imap.login(self.login, self.password)
type, dat = imap.login(self.login, str(self.password))
print("type is {} for {}".format(type, self.login))
mail_list = []
print("read mails from {}".format(self.login))