Hi Jaco Van,
Thanks and glad that you enjoy the article.
Regarding your question,
win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")inbox = outlook.GetDefaultFolder(6)
should be two separated line of code as below:
win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6)
Did u separate them in your code?
Thanks and regards,
KahEm