Added simple templating to mail