implemented basic email template