0% found this document useful (0 votes)
11 views2 pages

Gmail App Password Integration Guide

The document provides instructions for integrating a Gmail App Password into two scripts: app.py and send_bulk_email.py. Users must update their Gmail address in both scripts and follow specific steps to run the web application or command-line script. It also includes important security notes on keeping the files private and testing the functionality before sending emails to all recipients.

Uploaded by

Ayush singh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Gmail App Password Integration Guide

The document provides instructions for integrating a Gmail App Password into two scripts: app.py and send_bulk_email.py. Users must update their Gmail address in both scripts and follow specific steps to run the web application or command-line script. It also includes important security notes on keeping the files private and testing the functionality before sending emails to all recipients.

Uploaded by

Ayush singh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

================================================================================

✅ CREDENTIALS INTEGRATED INTO CODE


================================================================================

Your Gmail App Password has been integrated directly into both scripts:
- [Link] (Web Application)
- send_bulk_email.py (Command-line script)

App Password: aponbhzxcsarterp

================================================================================
⚠️ IMPORTANT: UPDATE YOUR GMAIL ADDRESS
================================================================================

You need to edit ONE line in each file:

1. In [Link] (line ~25):


Change: DEFAULT_GMAIL_USER = "[Link]@[Link]"
To: DEFAULT_GMAIL_USER = "[Link]@[Link]"

2. In send_bulk_email.py (line ~44):


Change: DEFAULT_GMAIL_USER = "[Link]@[Link]"
To: DEFAULT_GMAIL_USER = "[Link]@[Link]"

================================================================================
HOW TO USE NOW
================================================================================

WEB APPLICATION:
1. Edit [Link] - replace "[Link]@[Link]" with your Gmail address
2. Run: python [Link]
3. Open: [Link]
4. The form will be pre-filled with your Gmail address
5. Leave password field empty (it uses the default from code)
6. Upload CSV and start sending!

COMMAND-LINE SCRIPT:
1. Edit send_bulk_email.py - replace "[Link]@[Link]" with your Gmail address
2. Run: python send_bulk_email.py recipients_sample.csv
3. No need to enter credentials - they're in the code!

================================================================================
SECURITY NOTES
================================================================================

⚠️ These files now contain your App Password:


- [Link]
- send_bulk_email.py

✅ DO:
- Keep these files on your local machine only
- Don't commit to public Git repositories
- The .gitignore already excludes setup scripts

❌ DON'T:
- Share these files publicly
- Commit to GitHub/GitLab without removing credentials first
- Share your App Password with others
================================================================================
TESTING
================================================================================

Before sending to all recipients, test with:


- Web App: Set "Limit" to 1 in the form
- CLI: python send_bulk_email.py recipients_sample.csv --limit 1

================================================================================

You might also like