save submitted mails to a simple text file and fix related tests and issues