Test rendering Mandrill templates.
You'll need to install pip
and virtualenv
if you don't already have them. Probably these commands will work to install it on OS X:
curl -O http://python-distribute.org/distribute_setup.py
sudo python distribute_setup.py
sudo easy_install pip
sudo pip install virtualenv
You should now be able to install the Mandrill Tester application with the following steps:
- Clone this repo.
git clone git://github.com/fictivekin/mandrill-tester.git
cd
into the local repo directory.
cd mandrill-tester
- Set up a virtualenv.
virtualenv --no-site-packages ./venv
- Activate the virtualenv.
source ./venv/bin/activate
- Install the requirements with
pip install -r requirements.txt
- Copy the sample settings file.
cp tester/app_settings-sample.py tester/app_settings.py
- Edit
tester/app_settings.py
and fill in theMANDRILL_API_KEY
- Start the server with
python runserver.py
- Open the app at http://127.0.0.1:7102/
- Pick the Template slug with an existing template slug on your Mandrill account
- Fill in any Template content for editable sections. If none, leave as
[]
- Fill in any Merge vars as JSON
- Hit Render
- Pick the Template slug with an existing template slug on your Mandrill account
- Enter the to and from addresses, and the subject
- Fill in any Template content for editable sections. If none, leave as
[]
- Fill in any Merge vars as JSON
- Hit Send