Skip to content

Commit 5a2900c

Browse files
authored
Create README.txt
1 parent 08dcc64 commit 5a2900c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

38-Email-sender-script/README.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Bulk Email Sender with Gmail OAuth
2+
3+
## Features
4+
- Send bulk emails from a CSV file
5+
- Supports CC and BCC
6+
- Gmail OAuth 2.0 (no passwords)
7+
- FastAPI API endpoint
8+
- Logging with retries
9+
10+
## Setup
11+
1. Create a project in Google Cloud Console
12+
2. Enable Gmail API and download `credentials.json`
13+
3. Install dependencies:
14+
pip install -r requirements.txt
15+
4. Prepare `recipients.csv` with columns:
16+
email, cc, bcc, subject, body
17+
5. Run the FastAPI app:
18+
uvicorn app:app --reload
19+
20+
## API Endpoint
21+
- POST /send_bulk
22+
- Body:
23+
{
24+
"csv_file": "recipients.csv"
25+
}
26+
27+
## Logging
28+
- Check `email_sender.log` for success/failure logs
29+
- Automatic retries on failure (3 attempts, 5s apart)
30+
31+
## Notes
32+
- First run will open browser for Gmail OAuth authentication.

0 commit comments

Comments
 (0)