Skip to content

PrakshaaleJain/Cold-Mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulk Email Sender with/without Attachment

This Python script allows you to send emails to multiple recipients listed in a text file. It supports sending emails with or without attachments using the SMTP protocol.

Features

  • Send bulk emails to multiple recipients.
  • Supports attachments.
  • Uses Gmail SMTP for email delivery.

Prerequisites

Before running the script, ensure you have:

  • A Gmail account.
  • Enabled "Less Secure Apps" access or generated an App Password from your Google account settings (Generate App Password).
  • Python3 installed on your system.

Installation

  1. Clone this repository:

    git clone [email protected]:PrakshaaleJain/Cold-Mailer.git
    cd Cold-Mailer
  2. Create a virtual enviroment and activate it:

    python -m venv venv
    source venv/bin/activate # on linux or MacOS
    venv\Scripts\activate # On Windows
  3. Install dependencies:

    pip install smtplib email os

Configuration

  1. Update the email credentials in the script:
    email = "[email protected]"
    password = "your-app-password"
  2. Add recipient email addresses in emails.txt (one per line).
  3. Set the attachment file path:
    attachment_path = "path/to/attachment"
  4. Set the email file path:
    with open("path/to/emails.txt", "r") as file:
       email_list = [l.strip() for l in file if l.strip()]

Usage

Run the script using:

python3 send_email.py

Notes

  • Ensure your emails.txt file contains valid email addresses.
  • If you do not want to send an attachment, comment out the relevant section in the script.
  • Double-check the attachment_path to ensure the file exists before running the script.

License

This project is licensed under the MIT License.

Author

Prakshaale Jain

About

Python script that sends emails in bulk.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages