Code Monkey home page Code Monkey logo

smtp-mail-system's Introduction

smtp-mail-system

A Python implementation of the internal workings of the SMTP and POP3 protocols for email communication.

Overview of System Architecture

Architecture Diagram

Steps to send an email

Say you are in group A and wish to send an email to a recipient in group B:

  1. Turn on server A in 'send' mode so that it can first receive an email from a client in group A and then send it to group B's server (i.e. server B). Use the following command.
python SMTP/group_A/server_A.py send
  1. Run the SMTP application (app.py). Enter your email ID and construct an email.
python app.py
  1. Once you're done, this email will be sent to server A (which was listening for incoming connections!). Now, we need server A to send this to its corresponding SMTP server in group B: server B! For this, turn on server B in 'fetch' mode so that it can fetch the email that server A wants to send it!
python SMTP/group_B/server_B.py fetch
  1. The email has now reached server B! Now, the recipient of the email can once again run the SMTP application (app.py).
python app.py
  1. After entering their email ID and selecting the "Access inbox" option, the recipient can easily view this email sent to them (along with all the others sent to them before!).

P.S: The same steps will take place but with the A's being swapped with the B's and vice versa!

smtp-mail-system's People

Contributors

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