我有一个控制台应用程序,它使用 OpenPOP 处理邮箱中的电子邮件,它在一封电子邮件上失败,但有以下异常
An invalid character was found in the mail header: '\u007f
它调用的代码如下
MailMessage _testMail = emailFile.ToMailMessage();
_testMail.BodyEncoding = Encoding.UTF8;
_testMail.Subject = _testMail.Subject + " Issue ID: " + callid;
它在调用 emailFile.ToMailMessage() 时失败,将不胜感激