Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anusha__v
Advocate I
Advocate I

In Microsoft Fabric in NoteBook using Python there is no Pywin32

Hi,
In Microsoft Fabric in NoteBook using Python there is no Pywin32.
The task is to read and write the Excel file and send it as an attachment to Outlook.

can any one help

Thanks

2 ACCEPTED SOLUTIONS
nilendraFabric
Super User
Super User

Hello @Anusha__v 

 

I have answered this question here 

https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-send-an-email-with-an-attached-fil...

 

Please see if this helpful and accept the answer.

 

Thanks

View solution in original post

Hi @nilendraFabric ,
thanks for your help.
can you please provide more details on "send_mail" in your code if I need to send specific mail?
Thanks

View solution in original post

5 REPLIES 5
v-hashadapu
Community Support
Community Support

Hi @Anusha__v , Thank you for reaching out to the Microsoft Community Forum.

Please let us know if your issue is solved. If it is, consider sharing the insights or marking the answers that helped 'Accept as Solution', so others with similar queries can find them easily. If not, please share the details.
Thank you.

GilbertQ
Super User
Super User

Hi @Anusha__v 

 

Just also to add another comment is that in the notebooks you can install any python module using the pip installer.

 

Here is a way to complete it: Installing and Managing Python Packages in Microsoft Fabric





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

nilendraFabric
Super User
Super User

Hello @Anusha__v 

 

I have answered this question here 

https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-send-an-email-with-an-attached-fil...

 

Please see if this helpful and accept the answer.

 

Thanks

Hi @nilendraFabric ,
thanks for your help.
can you please provide more details on "send_mail" in your code if I need to send specific mail?
Thanks

Hi @Anusha__v , thank you for reaching out to the Microsoft Fabric Community Forum.

Based on the information available I concluded that send_email is calling the function which might be defined elsewhere and is passing in the required parameters which attaches excel file.

Please refer to these documents: Automate creating, sending, and processing messages using the Outlook mail API - Microsoft Graph | M...

Get Started with the Outlook REST APIs - Outlook Developer | Microsoft Learn

which will help you in writing the logic for send_email function.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.