transfer user infomation into a configuration file, seperate the mail stuff into a Email class