script for adding mail templates