Add message client id generator
Tested and fixed SendMail command
Changed insert_email to use dict not obj