Task H2: generating mails