繁体   English   中英

有没有办法在使用 MailKit c# 时将 email 另存为文件?

[英]Is there a way to save the email as a file while using MailKit c#?

我想将整个 email 与所有标头一起保存到磁盘,而不是使用 MimeKit 中继到 SMTP 服务器,这可能吗?

我知道 Message 本身可以写入文件。

是的。 你可以这样做:

message.WriteTo (fileName);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM