implemented mail template