First initial version of generating emails.