Get text message from exception.
Print System info.
Send mail directly with smtp.
Print console message in different color.
You can use this tool like "".PrintGreen();
$"任务执行结果:{result}".PrintGreen();
Convert object to json string.
Load mail list from json file.
private void Prepare()
{
var model = JsonUtil.Load<Mail>(JSON_FILE);
}
private const string JSON_FILE = "mails.json";
You can just call like JsonUtil.Save<MyModel>(file, model);
or JsonUtil.Save(file, json);