implement request handling and e-mail template