Added template choice when sending e-mails, added test-mail sending when sending e-mails