Automate Email attachment download by python script for reporting needs

Sourabh Jain 0 Reputation points
2025-07-31T09:24:38.75+00:00

Hi Team,

We have one usecase where customer reports in excel are sent as attachment over email ID and we could subscribe those report to receive on daily bases.

We are looking to subscribe those reports for daily and automate process to download attachment by python script for reporting needs. Is it possible or any alternative to automate this process?

Outlook | MacOS | New Outlook for Mac | For business
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Steven-N 5,575 Reputation points Microsoft External Staff Moderator
    2025-07-31T10:02:23.44+00:00

    Hi Sourabh Jain

    Thanks for reaching out to Microsoft Q&A forum support 

    Based on your description, I understand that you're looking for a Python script to automate the process of downloading attachments from Outlook emails. 

    As I am forum moderator, I cannot give you the definitive solution due to the limitation of capabilities and accessibility, however, I've done some research and found a helpful guide that addresses your concern. You can refer to the instructions at the following link:  

    Python_For_RF_Optimization_And_Planning_Engineer/pst_attachmets_working/subject_today_inbox_folders.md at main.GitHub 

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link 

    Hope my answer will help you, for any further support, let me know in the comment section 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".     

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Sourabh Jain 0 Reputation points
    2025-08-01T12:09:10.3166667+00:00

    Do we have any other solution ? Getting issue with Mac because of

    ModuleNotFoundError: No module named 'win32com'
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.