8

I would like to save the entire email to the disk with all the headers instead to relay to an SMTP server using MimeKit, is this possible?.

I am aware that the Message itself can be written into a file.

1 Answers1

13

Yes. You can do:

message.WriteTo (fileName);
jstedfast
  • 35,744
  • 5
  • 97
  • 110