MailKit在其名称中包含]或[的文件夹时将引发以下异常: at MailKit.Net.Imap.ImapEngine.UpdateStatus(CancellationToken cancellationToken)
at MailKit.Net.Imap.ImapEngine.ProcessUntag
我正在尝试转换一些Python代码,以便在.Net网站中使用。代码检索以RFC822格式存储的消息,并再次使用以下方法将消息发送到SMTP服务器:rcpt to: blah blah<send the text from the RFC822 file here>因此,不需要解析RFC822文件(幸运的是!)。在Python中,这只是:smtp.sendmail(_FROMADDR, recipient, msg)
其中文件已被读入变量msg中。在C#中