Skip to content

Marketing email software that queries a MySQL database for data about customers and their orders and uses the data to compile customized marketing emails.

Notifications You must be signed in to change notification settings

AustinDobbins/python_ecommerce_emailer

Repository files navigation

E-Commerce Email Marketing Tool

Getting Started

These instructions will explain everything necessary to get this Python script working properly.

Preruisites

You will need to make sure you have the following install on your machine:

Python 3.6

MYSQL 8.0 Server

Python MYSQL-Connector package

Installing

Download and install Python at:

https://www.python.org/downloads/

Download and install MySQL at:

https://dev.mysql.com/downloads/windows/installer/8.0.html

Install Python dependencies:

CD into the github repo folder after where you cloned it from github

pip install -r requirements.txt

How to Use

Filling the database:

First you will need to manually insert test data into the MySQL tables.

Altering the Python script to work with sender email:

On line 94 put your gmail account address in the quotes.

On line 95 put the password for that gmail account in the quotes.

On line 100 put your MySQL root password in quotes

Once the database is filled with desired data run:

python send.py

The script will query the MySQL database to pull data on anyone that has a birthday today or has spent over $100 in the ecommerce store. The script will than compile a customized email and send it to each applicable recipient.

About

Marketing email software that queries a MySQL database for data about customers and their orders and uses the data to compile customized marketing emails.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published