Giter Site home page Giter Site logo

attachment-email-outlook-app's Introduction

Attachment Email via Outlook

This script automates the process of sending emails with attachments via Outlook. It reads data from an Excel file containing email addresses and merges it with another Excel file to extract relevant information. Then, it sends emails with attached PDF files based on the merged data.

Requirements

  • Python 3.x
  • win32com library
  • pandas library

Usage

  1. Clone this repository:

    git clone <repository_url>
    
  2. Install the required libraries:

    pip install pandas pywin32
    
  3. Prepare your Excel files:

    • Ensure you have an Excel file containing email addresses (e.g., Base_nome_cnpj_email.xlsx).
    • Ensure you have another Excel file containing the necessary data for the email content and file attachments (e.g., base.xlsx). Make sure the column names match those expected by the script (Número, Nome, Data de vencimento, EMAIL).
  4. Run the script:

    python attachment_email_outlook.py
    
  5. Follow the prompts to input the email subject and the name of the base Excel file.

  6. The script will send emails with attachments to the specified email addresses via Outlook.

Notes

  • This script assumes you have Microsoft Outlook installed and configured on your system.
  • Make sure to customize the script according to your specific requirements, such as adjusting column names, file paths, and email content.
  • Ensure that the Excel files and PDF attachments are located in the same directory as the script.
  • The script logs the sent emails in an Excel file named emails_enviados.xlsx.

If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request!

attachment-email-outlook-app's People

Contributors

junperes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.