Added mail template support to deliveries.