Coder Social home page Coder Social logo

asynchronous-email's Introduction

Asynchronous Email Sender

Description

You are given a folder containing PDF files. Your task is to develop a Python program that asynchronously processes these PDF files, extracts email addresses from their content, and sends emails to the identified email addresses with the PDF files attached. After sending each email, move the corresponding PDF file to a "Sent" folder. If any errors occur during the email sending process, move the PDF file to an "Error" folder for further investigation.

Requirements:

Use Python's asyncio and aiohttp libraries for asynchronous operations and HTTP requests. Implement functions for extracting email addresses from PDF files and sending emails asynchronously. Ensure proper error handling for email sending failures. Create directories for "PDFs," "Sent," and "Error" folders, if they don't already exist. Use environmentrequirements.txt variables for configuration, including SMTP server details, email credentials, and folder paths.

Evaluation Criteria:

You will be evaluated based on the following criteria:

  • Correctness: Does the program extract email addresses accurately and send emails without errors?
  • Asynchronous Implementation: Are asynchronous operations used effectively to process PDF files and send emails concurrently?
  • Error Handling: Does the program handle email sending failures gracefully and move PDF files to the appropriate folders?
  • Code Quality: Is the code well-structured, readable, and maintainable?
  • Documentation: Is there clear documentation explaining how to run the program and interact with its functionalities?

Requirements

  • Python 3.8+

Run app

python main.py

asynchronous-email's People

Contributors

puse45 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.