https://github.com/skulltech/py-gmail
A simple Python script for sending email from your Gmail account
https://github.com/skulltech/py-gmail
gmail gmail-api python python-script python3
Last synced: 7 months ago
JSON representation
A simple Python script for sending email from your Gmail account
- Host: GitHub
- URL: https://github.com/skulltech/py-gmail
- Owner: skulltech
- License: mit
- Created: 2017-05-15T07:54:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T15:26:30.000Z (about 8 years ago)
- Last Synced: 2025-03-27T12:48:51.567Z (11 months ago)
- Topics: gmail, gmail-api, python, python-script, python3
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-gmail
A simple Python script for sending email from your Gmail account
### Installation
1. Download the `client_secret.json` for your app from Google API console and place it in the same folder as of this script.
2. Install the requirements by running `pip install -r requirements.txt`.
### Usage Instructions
```python
import pygmail
response = pygmail.send_mail('sender@gmail.com', 'receiver@email.com', 'Message Subject', 'Message text')
```