Latest Questions tagged Outlook

Browse all latest questions tagged Outlook

34
Votes
Published 30 Oct, 2022
Java - Generate a excel using java and create a macro in the excel

I have a java code that takes data from MongoDB and later creates an excel(.xls) containing this data using Apache POI but in a formatted manner. My final requirement is to mail the last worksheet i...

42
Votes
Published 18 Aug, 2022
Python - Python win32com : Reading multiple Outlook inbox

I want to get the SenderEmailAddress of all email sent on two specified mail addresses : [email protected] and [email protected] that are in my Outlook Application on my computer, the point is to make a list of a...

99
Votes
Published 17 Aug, 2022
Python - python win32com outlook 2013 SendUsingAccount return exception

While working on a simple mail automation with python and win32com api, I had an issue with SendUsingAccount. It was ignored or, worse, generating an error when I upgraded from windows 7 to windows 10...

29
Votes
Published 15 Jun, 2022
Python - How to pass a parameter in an Outlook rule to run a Python script?

I created a shutdown.py script that shuts down my computer. I have a working rule in Microsoft Outlook that executes my Python script when I receive an email that has %BLAHBLAHBLAH% in the subject. Is...

74
Votes
Published 26 Apr, 2022
Python - Send Outlook Email Via Python?

I am using Outlook 2003. What is the best way to send email (through Outlook 2003) using Python?

55
Votes
Published 26 Apr, 2022
Python - Parsing outlook .msg files with python

Looked around and couldn't find a satisfactory answer. Does anyone know how to parse .msg files from outlook with Python? I've tried using mimetools and email.parser with no luck. Help would be great...

31
Votes
Published 24 Apr, 2022
Python - Reading e-mails from Outlook with Python through MAPI

I'm trying to write a short program that will read in the contents of e-mails within a folder on my exchange/Outlook profile so I can manipulate the data. However I'm having a problem finding much inf...

57
Votes
Published 26 Aug, 2022
Python - Choosing "From" field using python win32com outlook

I am trying to automate emails using python. Unfortunately, the network administrators at my work have blocked SMTP relay, so I cannot use that approach to send the emails (they are addressed external...

47
Votes
Published 25 Aug, 2022
Python - win32com.client.Dispatch works but not win32com.client.gencache.EnsureDispatch

i'm learning win32com for python and I've got a strange problem. I'e trying to export Outlook Contacts in a List of Dictionnary. My code works perfectly with win32com.client.Dispatch("Outlook.Applica...

48
Votes
Published 21 Aug, 2022
Python - How can I search the Outlook (2010) Global Address List for a name?

I have a list of names, some of them complete, some truncated. I would like to search the Outlook address list for matches for these names. The closest I have come is this Python code which came from...

26
Votes
Published 20 Aug, 2022
Python - programmatically send outlook email from shared mailbox

I'm trying to send an email with python from a shared mailbox. I have been able to sucessfuly send it through my own email, but sending one with a shared mailbox (that I have tested that I have acces...

22
Votes
Published 19 Aug, 2022
Python - Script in python to download email attachments

I have the following script : import imaplib import email import os svdir = 'c:/downloads' mail = imaplib.IMAP4('https://outlook.office365.com/mapi/emsmdb/?' 'MailboxId=6ebd46...

64
Votes
Published 26 Apr, 2022
Python - Clearly documented reading of emails functionality with python win32com outlook

I'm trying to understand outlook interaction through win32com better. I've been unable to find clear documentation that allows me to utilise win32com to read emails effectively, from my current inves...

86
Votes
Published 13 Aug, 2022
Python - How to Add File as Attachment to Outlook Item in Python

I have just created a few files and zipped them up, then begun an email to send it. I'ts probably simple, but I haven't been able to figure out how to specify a file by path to attach. Feeding the f...

57
Votes
Published 10 Aug, 2022
Python - How to insert .html file in outlook as text by using python

I want to insert a .html file as text by using python. I am using win32com but problem is that it is attaching the file in attachment i want to insert it in main body. import win32com.client from con...