Skip to content

A mail server that created with python's built in library.

License

Notifications You must be signed in to change notification settings

ShahariarRabby/Mail_Server

Repository files navigation

Mail Server

This can send and receive mail from Gmail server.

Python 2

All code is well described. Please see the ipynb file for more details. Also read the comment.

If you want to understand the code see the ipynb file. .py files are for running purpose.

You may only need to install playsound library pip install playsound

Library needed:

If you face any problem please follow this process to install the library

  • smtplib

    For install smtp lib run pip install smtplib

  • email

    For install email runpip install email

  • getpass

    For install getpass runpip install getpass

  • imaplib

    For install imaplib runpip install imaplib

  • playsound

    For install playsound run pip install playsound

  • threading

    For install threading runpip install threading

  • ctypes

    For install ctypes runpip install ctypes

Files

  1. Sendmail.py is the main file for sending mail. All send function is under that file. No need to run

  2. Sendy.py can send mail. It is depandent on Sendmail.py

  3. ReceiveMail.py is the main file for reciving mail. All reciving function is under that file No need to run

  4. CheckMail.py is check a number of file from server. It is depandent on ReceiveMail.py

  5. Server.py send connection request to server in every 15 sec and notify user if there is new email. It is depandent on ReceiveMail.py

Bugs

In py file getpass.getpass() function is not working on my windows terminal. So I remove them from py file. It will work well in .ipynb file. Try your terminal that it works your pc or not.

getpass.getpass() is working on qpython 2 and Linux

License

MIT License

Copyright (c) 2017 Shahariar Rabby

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Thank You