I would like to populate an excel sheet with below details for every new email in my Outlook.
- Reply - To
- Return Path
- X-Agari Original Sender
- X-Agari Original Receiver
- X-Originating IP
Whenever a new email comes into my outlook inbox or any other SPECIFIC folder, I need an excel sheet to be updated.
Could you please help me with this?
you will generally get a better response posting what you have so far here (script), rather than asking people to write you a solution
So far i have done this in Python but could not find proper documentation for the modules which I am using. This is the reason I had to come to Powershell as both Outlook and Powershell are from Microsoft.
Outlook isn’t actually “enabled” for PowerShell. The best you’re going to be able to do is Outlook’s old COM object, which s exposed via .NET Interop for Office Programmability. I’d look into that - but, it’s going to be difficult, and it’s going to involve a LOT of code. Outlook (and Excel, for that matter) just wasn’t designed for this task.
I will wait for your response.
If you use exchange with outlook and don’t fear someone’s code, you can try to look for EWS Exchange examples at this topic