Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.67 KB

File metadata and controls

47 lines (36 loc) · 1.67 KB

Gmail Application Using Python

This project demonstrates how to send emails using Python's smtplib library. The application allows users to input sender and receiver email addresses, a subject, and a message, and then sends the email via Gmail's SMTP server.

Features

  • Send emails using Gmail's SMTP server.
  • Input-based configuration for sender and receiver email addresses, subject, and message.
  • Basic error handling for email sending.

Project Structure

  • SendMsgUsingGmail.py: Contains the main implementation for sending emails using the PythonGmail class.

How to Use

  1. Clone the repository or download the project files.
  2. Open the SendMsgUsingGmail.py file in your Python environment.
  3. Run the script:
    python SendMsgUsingGmail.py
  4. Enter the following details when prompted:
  • Sender email address
  • Receiver email address
  • Email subject
  • Email message
  1. The script will attempt to send the email and display a success or error message.

Prerequisites

  • Python 3.x installed on your system.
  • Enable "Less secure app access" in the sender's Gmail account settings. (Note: This is not recommended for production use due to security concerns.)
  • Replace the placeholder Gmail app password ('kghv ilil rsta zbcd') in the script with your actual Gmail app password.

Future Enhancements

  • Add support for attaching files to emails.
  • Implement encryption for secure email communication.

Disclaimer

This project is for educational purposes only. Use it responsibly and ensure compliance with Gmail's terms of service and security guidelines.