An open API service indexing awesome lists of open source software.

https://github.com/aahnik/bulk-email-sender

Send Templatized Dynamic Emails Automatically
https://github.com/aahnik/bulk-email-sender

aahnik automailer begginer-friendly bulk-email bulk-email-sender custom-template dynamic-email-send easy-to-use email email-from-database email-marketing email-sender email-template hacktoberfest python

Last synced: about 2 months ago
JSON representation

Send Templatized Dynamic Emails Automatically

Awesome Lists containing this project

README

        

# bulk-email-sender

Send Templatized Dynamic Emails Automatically

## What's New

- You can send html mails. Just write `compose.html`.

## Features

This is a simple program which does its work perfectly. Nothing more, nothing less

1. Send dynamic emails with unlimited variables pulling data from a CSV file.
2. Supports Markdown Formatting & embed links or images.
3. Supports Attaching any kind of files.

## Usage

- Make sure you have Python installed in your system.
- Download or Clone the repo and then move into the `automailer` directory.
- Install all dependancies:
```shell
pip install -r requirements.txt
```
- Write your email inside **`compose.md`** (supports markdown formatting)
- You can use **variables** , prefix them with `$` sign.

> Hi $NAME , you have Bill Rs. $price due for $months

- Put your data inside `data.csv` file
*The line 1 ie headers must contain 'EMAIL' (uppercase) parameter*

![csv_image](https://user-images.githubusercontent.com/66209958/103172846-715d0c00-487c-11eb-9419-9dceb4297e49.png)

*You can Export CSV file from Microsoft Office Excel, Libre Office, Google Sheets, SQL Database, or NoSQL Database*

- You you want to put any attachments , put them in the `ATTACH` directory.
- Create a file `.env` and put the following into it:

```text
display_name=Mr.Bean
[email protected]
password=12345
```
Make sure to put real values, the above values are just an example.
- **Do not put original email password.**
Create Gmail Account then turn on 2 step Verification, and then set up an [App Password](https://support.google.com/accounts/answer/185833?hl=en) for `automailer`.
- All set up 👍 you are now READY TO GO . Run the `send.py` file:
```shell
python3 send.py
```
- You will be asked to confirm the attachments in the `ATTACH` folder. Upon confirmation , the application will start sending emails.
- You will receive a full success report after emails are sent.

## Getting Help

Please report an issue or ask your question in the issues section of the repository.