This repository contains a Python script for automating the process of sending emails through Microsoft Outlook with specific Excel files attached as needed.
- Microsoft Outlook installed and configured on the computer that will run the script.
- Python installed.
- Python libraries
pandasandwin32com.client, which can be installed via pip:
pip install pandas pywin32- Send Emails.xlsx: A spreadsheet containing the recipient data and the reports to be sent.
- Report Excel files: Files named according to the report areas (example: Financial.xlsx, Logistics.xlsx, etc.).
- Clone the repository or download the email.ipynb script.
- Ensure all Excel report files are in the same folder as the script or update the file paths in the code accordingly.
Edit the Send Emails.xlsx file according to the structure below:
- Manager: The name of the manager or report recipient.
- Email: The email address to which the report will be sent.
- Report: The name of the report area, which must match exactly the name of the Excel file for the report.
Run the email.ipynb Jupyter Notebook, and the script will automatically send the emails, following the information provided in the Send Emails.xlsx spreadsheet.
- Outlook must be open and functioning on the computer that executes the script.
- The current script is configured to work in a Windows environment, considering the use of Windows file paths and the win32com library.
For any questions or issues, please open an 'issue' in this repository or contact the maintainer.
Fabricio Colombo
Software Engineer