You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ This is a repository of all the tutorials of [The Python Code](https://www.thepy
130
130
-[How to Make a URL Shortener in Python](https://www.thepythoncode.com/article/make-url-shortener-in-python). ([code](general/url-shortener))
131
131
-[How to Get Google Page Ranking in Python](https://www.thepythoncode.com/article/get-google-page-ranking-by-keyword-in-python). ([code](general/getting-google-page-ranking))
132
132
-[How to Make a Telegram Bot in Python](https://www.thepythoncode.com/article/make-a-telegram-bot-in-python). ([code](general/telegram-bot))
133
+
-[How to Use Gmail API in Python](https://www.thepythoncode.com/article/use-gmail-api-in-python). ([code](general/gmail-api))
# [How to Use Gmail API in Python](https://www.thepythoncode.com/article/use-gmail-api-in-python)
2
+
To use the scripts here:
3
+
- Create your credentials file in Google API dashboard and putting it in the current directory, follow [this tutorial](https://www.thepythoncode.com/article/use-gmail-api-in-python) for detailed information.
4
+
-`pip3 install -r requirements.txt`
5
+
- Change `our_email` variable in `common.py` to your gmail address.
6
+
- To send emails, use the `send_emails.py` script:
7
+
```
8
+
python send_emails.py --help
9
+
```
10
+
**Output:**
11
+
```
12
+
usage: send_emails.py [-h] [-f FILES [FILES ...]] destination subject body
0 commit comments