1. fix some bugs; 2. format of  mail content