Python files that use Mailgun's API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
results
README.md
failures.py
logs.py
statistics.py

README.md

Mailgun

Python files that use Mailgun's API

How to Install

  1. Download and install Python 3.6+ (make sure to include it in PATH when it prompts you during installation)
  2. Open the command prompt (cmd) from the start menu
  3. Inside of cmd, type:
python
import pip
exit()
pip install requests
pip install prettytable
pip install xlsxwriter
  1. Download the zip file from GitHub, you should now be able to double click the python files in order to run them.
  2. Replace YOUR_API_KEY with your Mailgun API key inside all of the python files.

Get statistics from message tags (statistics.py)

In this implementation, we have used 4 different tags, the first is LrgEm##, then LrgEm##a, LrgEm##b, and LrgEm##c. This gets the summation of all these tags and bases the results on those numbers. The user only has to enter the first one (LrgEm##). Results are stored in the "results" folder.

1 2 3

Download email addressess that should be removed (failures.py)

This one gets the email addresses of permanent bounces, unsubscribes, and complaints then puts them into excel files so that you can later upload them for deletion. Results are stored in the "results" folder.

1

Download Logs (logs.py)

This gets all of the events that have occured on an email for a specific tag. This also consolidates all the tags for a, b, and c and creates an xlsx spreadsheet. There are also pre-populated fields in the spreadsheet with number of opens, clicks, delivers, fails, open rate, and click through rate. Results are stored in the "results" folder.

1 2