Skip to content

lmnzxx/single-file-python-gmail-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Python Single Page Gmail Client

Python Single Page Gmail Client is a simple Python script for sending and reading emails from Gmail using SMTP and IMAP.

πŸ“Œ Features

  • πŸ”‘ Login to Gmail using SMTP and IMAP
  • πŸ“© Send emails with attachments
  • πŸ“¬ Read emails from Inbox and Sent Mail
  • πŸ” Search emails by keyword
  • πŸ”„ Automatic reconnect mechanism if the connection is lost

πŸ› οΈ Installation

Make sure Python 3.x is installed, then run the following command to install dependencies:

pip install smtplib imaplib email getpass

πŸš€ Usage

  1. Run the script:
    python gmailClient.py
  2. Enter your Gmail address and App Password (not your regular password).

    Note: Enable 2FA on your Gmail account, then create an App Password from Google Security

  3. Use the interactive menu to send or read emails.

πŸ“§ SMTP & IMAP Configuration

This script uses Gmail's default servers:

  • SMTP Server: smtp.gmail.com (port 587)
  • IMAP Server: imap.gmail.com (port 993)

πŸ“ License

This project is licensed under the MIT license. Feel free to use and modify it as needed.

About

This single file python gmail client are used to train myself doing some network related python scripting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages