outlook

Why is this throwing an exception when I try to save the attachment from Outlook?

Why is this throwing an exception when I try to save the attachment from Outlook? Question: I am trying to iterate through the contents of a subfolder, and if the message contains an .xlsx attachment, download the attachment to a local directory. I have confirmed all other parts of this program work until that line, …

Total answers: 1

About Microsoft turning off IMAP protocol communication. When I use imaplib in python I get this error: b'LOGIN failed'

About Microsoft turning off IMAP protocol communication. When I use imaplib in python I get this error: b'LOGIN failed' Question: My sample code block; import imaplib try: userName = "[email protected]" passwd = "***" SMTP = "outlook.office365.com" Port = "993" imapSession = imaplib.IMAP4_SSL(SMTP, Port) imapSession.login(userName, passwd) except Exception as e: print(e) Return: error: b’LOGIN failed.’ I’m …

Total answers: 1

Running python script using Outlook VBA

Running python script using Outlook VBA Question: Im trying to run a python script using Outlook Vba. When I run the below code. A python icon appears in the taskbar for a second and disappears. When in fact it should open a dialogue box and prompt me to enter folder name. After which it should …

Total answers: 3

how to disable outlook security pop-ups when sending emails via python

how to disable outlook security pop-ups when sending emails via python Question: I have a problem I am trying to automate the sending of emails using win32 in python. The problem s that every time when I run the code I get a security pop as shown below How do i disable it Asked By: …

Total answers: 1

Microsoft GRAPH API to get total number of mails in my inbox

Microsoft GRAPH API to get total number of mails in my inbox Question: I am writing to script to check my mail and download the attachments. What I am trying to do is to check my Total inbox mail count every 5mins and find if there is a new mail and download its attachments. I …

Total answers: 1

How to get image files working with the HTM tag <img src=> when absolute path contains whitespaces?

How to get image files working with the HTM tag <img src=> when absolute path contains whitespaces? Question: I am trying to embed a locally hosted picture in the outlook e-mail body using .htm file. If relevant I am creating e-mails with win32com.client package. Absolute path of the .gif file: C:/Users/User/AppData/Roaming/Microsoft/Signatures/some folder/image.gif .htm file content …

Total answers: 2

win32.client com_error "Array index out of bounds"

win32.client com_error "Array index out of bounds" Question: I have a short function that compiles a list of all the emails in a specific outlook folder and then saves the attachments to a specific folder. I last used this function successfully about 3 months ago and it seems something has broken it. The exception: com_error: …

Total answers: 1

Opening outlook with filled fields using Python

Opening outlook with filled fields using Python Question: I am trying to create a function to open a new Outlook message, but I would like the message to appear already with the recipient, subject fields. So far what I have found is how to open a new Outlook window with the recipient, but I still …

Total answers: 2