Configurable PHP library for creating emails from templates