This project is a custom email application that allows users to send and receive emails using the SMTP and POP3 protocols in Python. It features a simple graphical interface built with Tkinter for interacting with email services.
- Send emails using SMTP
- Receive emails using POP3
- Basic GUI for interaction
- Displays received email messages



-
Clone the repository:
git clone https://github.com/sorooshaghaei/smtp-pop3-with-python.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the app:
python app.py
To use this app for sending and receiving Gmail, you need to configure Gmail settings:
-
Enable Less Secure App Access: Google requires you to use app-specific passwords for third-party email applications if two-factor authentication is enabled.
- Visit Google Account Security and enable App Passwords. Generate a one-time app password, which will be used instead of your Gmail password in this app.
-
Enable POP for Receiving Emails:
- Go to your Gmail settings.
- Under the Forwarding and POP/IMAP tab, enable POP Download.
- Choose to enable POP for all mail or mail that arrives from now on, depending on your preference.
- Open the app.
- To send an email, fill in your Gmail email address, app password, recipient's email, subject, and message body, then click "Send".
- To check your inbox, enter your Gmail email and app password, and click "Receive". Ensure that POP is enabled in your Gmail account for this feature to work.
- Python 3.x
smtplib
for sending emailspoplib
for receiving emailstkinter
for the graphical user interface
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.