New functions

- to send emails
- to generate keys