Skip to content

Sanjaydk357/Automate_Email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“§ Python Automated Email Sender with Attachments

This Python script automates the process of sending personalized emails (with file attachments) using Gmail's SMTP server. It's perfect for small batch email campaigns, notifications, or simple mailing systems.

πŸš€ Features

  • βœ… Secure login using credentials stored in a text file
  • βœ… Send emails to a list of recipients from a CSV file
  • βœ… Supports file attachments (PDF, images, documents, etc.)
  • βœ… Modular, readable code structure
  • βœ… Easily customizable subject and message body

πŸ“‚ File Structure

Automate_Email/
β”œβ”€β”€ email_sender.py
β”œβ”€β”€ credentials.txt
β”œβ”€β”€ emails.csv
β”œβ”€β”€ sample.pdf
└── README.md

πŸ”§ Setup Instructions

  1. Install Python if not already installed.

  2. Create a Gmail App Password (required if you have 2FA enabled):

  3. Prepare Required Files:

    • credentials.txt:

      your_email@gmail.com
      your_app_password_here
      
    • emails.csv:

      recipient1@example.com
      recipient2@example.com
      recipient3@example.com
      
    • Place the file you want to attach (e.g., sample.pdf) in the same directory.

  4. Run the Script:

    python automate_email.py

About

A simple Python script to send bulk emails with file attachments using Gmail SMTP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages