GithubHelp home page GithubHelp logo

bdr-pro / bulkemailsender Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 256 KB

๐Ÿš€ BulkSender: Email ๐Ÿ“ง blast! Secure login ๐Ÿ”, CSV contacts ๐Ÿ“‹, Attach files ๐Ÿ“, Gen Z vibes ๐ŸŒˆ, Easy peasy! ๐Ÿค™

Python 100.00%
csv email email-sender python

bulkemailsender's Introduction

Bulk Email Sender App ๐Ÿ“จ

Welcome to the Bulk Email Sender App! This Python script is crafted to streamline the process of sending bulk emails directly from your command line. Whether you're distributing newsletters, job applications, event invitations, or any bulk email, this app simplifies the process, allowing you to send personalized emails efficiently to a list of recipients. It supports attachments and ensures secure login credentials handling through environment variables.

    """
    /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\ 
    ( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )
    > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ < 
    /\_/\   __  __       _ _   ____                 _              /\_/\ 
    ( o.o ) |  \/  | __ _(_) | / ___|  ___ _ __   __| | ___ _ __   ( o.o )
    > ^ <  | |\/| |/ _` | | | \___ \ / _ \ '_ \ / _` |/ _ \ '__|   > ^ < 
    /\_/\  | |  | | (_| | | |  ___) |  __/ | | | (_| |  __/ |      /\_/\ 
    ( o.o ) |_|  |_|\__,_|_|_| |____/ \___|_| |_|\__,_|\___|_|     ( o.o )
    > ^ <                                                          > ^ < 
    /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\  /\_/\ 
    ( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )( o.o )
    > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ <  > ^ < 
    """

Features ๐Ÿš€

  • Bulk Emailing: Send personalized emails to a list of recipients from a CSV file.
  • Email Customization: Personalize the email subject and body via a JSON file.
  • Attachments: Attach files to your emails, ideal for documents like resumes or reports.
  • Secure Credential Handling: Uses environment variables to securely store email login credentials.
  • User-Friendly Interface: Simple command-line interface for easy operation.

Prerequisites ๐Ÿ“‹

Before getting started, ensure you have:

  • Python 3.x installed on your computer.
  • A .env file with your SMTP email credentials (SENDER_EMAIL and SENDER_PASSWORD).
  • The recipient list in a CSV file named emails.csv.
  • Any attachments you wish to send, accessible in the script's directory.

Installation ๐Ÿ› 

  1. Clone or Download: Clone this repository or download the script files to your machine.

  2. Install Dependencies: Install the required Python packages:

    pip install python-dotenv
  3. Setup .env File: Create a .env file in the script's directory with your email credentials:

    [email protected]
    SENDER_PASSWORD=your_email_password
    

Usage ๐Ÿ“

  1. Prepare Your CSV: Format your emails.csv with one email address per line for the recipients.
  2. Customize Message: Edit the template_message.json to match your email's subject and body.
  3. Set Attachment (Optional): Specify the filename of your attachment in the command line.

Commands

  • Sending Emails:

    python bulksender.py send -e template.csv -m template_message.json -a attachment.pdf

    This command will process and send emails according to the specified CSV file and message template, attaching the specified file.

  • Login:

    python bulksender.py login [email protected]

    This command securely saves your SMTP credentials for email sending.

Comand Line Interface ๐Ÿ“Ÿ

The script provides a user-friendly command-line interface for easy operation. Here's a brief overview of the available commands:

Welcome to the Email Sender App!

Usage:
    python bulksender.py [command] <arguments>

Commands:
    send    - Execute the send function of the app.
    login   - Perform login operation.

Arguments for 'send':
    -e <path to email CSV file>
    -m <path to message JSON file>
    -a <path to attachment>

Examples:
    python bulksender.py send -e template.csv -m template_message.json -a cv.pdf
    python bulksender.py login [email protected]

alt text

Contributing ๐Ÿค

Contributions are welcome! Feel free to fork the project, make improvements, and submit pull requests. If you encounter issues or have suggestions, don't hesitate to open an issue on GitHub.

Notes and Best Practices ๐Ÿ”’

  • Ensure you have permission to email the recipients and comply with anti-spam laws.
  • The script defaults to Gmail's SMTP server; if using another service, adjust the smtp_server and port accordingly.
  • Be mindful of sending limits imposed by your email service provider to avoid service disruptions.

Happy Emailing! ๐ŸŽ‰

bulkemailsender's People

Contributors

bdr-pro avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.