Open huizhang001 opened 2 years ago
file, _ := os.Open("./test.txt") part, err := email.NewPartAttachment(file, "测试") file.Close()
please help me !!!!!!!!!!!!!!!!!!!
Solved:
file, _ := os.Open("./test.txt") part, err := email.NewPartAttachment(file, mime.QEncoding.Encode("UTF-8", "测试")) file.Close()
file, _ := os.Open("./test.txt") part, err := email.NewPartAttachment(file, "测试") file.Close()
please help me !!!!!!!!!!!!!!!!!!!