An open API service indexing awesome lists of open source software.

https://github.com/contractor-x/gmail-bot

A simple program that uses the Google mail services to send and receive mail
https://github.com/contractor-x/gmail-bot

gmail gmail-api gmail-smtp google python student-project

Last synced: 6 months ago
JSON representation

A simple program that uses the Google mail services to send and receive mail

Awesome Lists containing this project

README

          

# Google Mail API Prototype

This is a **novice-level program** that utilizes the **Google Mail API** to send emails from a **sender's address** to a **recipient's address**.

---

## **About This Project**
This project demonstrates how to integrate the **Google Mail API** to send emails programmatically. It serves as a **prototype**, and the final version with enhanced functionality will be released soon.

🔹 **Ensure to replace the placeholder details** with your actual sender and recipient email addresses before running the program.

---

## **Features**
✅ Uses the **Google Mail API** to send emails
✅ Simple and beginner-friendly implementation
✅ Provides a foundation for future enhancements
✅ Secure authentication using OAuth 2.0

---

## **How to Use**

### **Set Up Google Mail API**
1. Enable the **Gmail API** in your **Google Cloud Console**.
2. Obtain **OAuth 2.0 credentials**.
3. Install the required Python packages:
```sh
pip install --upgrade google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client
```

### ** Run the Program**
```sh
python gmail bot2.py
```

---

## **Project Structure**
```
Gmail API Project
│── gmail 2.py # Main program for sending emails.
│── README.md # Project documentation..
```

## **📜 License**
This project is open-source and available under the **MIT License**.