Skip to content

A Python-based application to send emails using Gmail's SMTP server with user input for sender, receiver, subject, and message.

Notifications You must be signed in to change notification settings

Phani-LP/Gmail_Application_Using_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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.

About

A Python-based application to send emails using Gmail's SMTP server with user input for sender, receiver, subject, and message.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages