Automate Gmail cold emails with Python and Excel — includes personalized messages and resume attachments.
This project demonstrates how to send bulk emails safely and efficiently using Python, Excel, and Gmail SMTP.
- Reads contacts (Name, Email, Company) from Excel file
- Sends personalized emails (e.g., "Hi John")
- Attaches a resume or any file automatically
- Uses Gmail SMTP with secure App Passwords
- Includes sample Excel and dummy resume for testing
Email-Automation/
│
├── emails_automate.py # Main Python script
├── sample emails data.xlsx # Dummy contact list (safe for demo)
├── sample resume.pdf # Example resume (safe for demo)
└── README.md # Project documentation
git clone https://github.com/yourusername/email-automation-python.git
cd email-automation-pythonpip install pandas openpyxl- Enable 2-Step Verification in your Google account
- Generate an App Password (Guide)
- Replace your email & app password in
emails_automate.py
your_email = "yourgmail@gmail.com"
your_password = "your_app_password"- Add your own
emails.xlsx(not included in repo for privacy).- Format should be:
| Name | Company | |
|---|---|---|
| John Doe | john.doe@testmail.com | TestCorp Ltd |
| Jane Smith | jane.smith@demo.com | DemoWorks Inc |
- Run the script:
python emails_automate.py- Emails will be sent to all contacts in the Excel file with your resume attached.
- Do NOT upload your real Excel or resume to GitHub.
- Only use the provided sample_emails.xlsx and Dummy_Resume.pdf for demonstration.
- Use responsibly — avoid spamming or violating Gmail policies.
Hi John,
I hope this email finds you well.
I am reaching out to express my interest in any available opportunities in Data Science / Machine Learning.
Please find my resume attached for your consideration.
Looking forward to hearing from you.
Best regards,
Your Name
Feel free to fork this repo and enhance it — for example:
- Add HTML email templates
- Integrate Gmail API for OAuth login
- Add logging / error handling
Rohit Yadav
📧 Email: rohityadavofficial.06@gmail.com
🔗 LinkedIn | GitHub