Middle infrastructure for email system set. Improved workflow and removed errors
temp