added erb template for emails