zabszk/CSharp-SMTP-Server

Email messages missing attachments.

alexhiggins732 opened this issue · 3 comments

The IMessageTransaction interface and implementations do not implement an Attachment collection and the underlying server code does not parse the attachments of the email.

I used MimeKit and this worked for me

var message = new MimeMessage();
byte[] byteArray = Encoding.ASCII.GetBytes("MailRawBody");
MemoryStream stream = new MemoryStream(byteArray);
message = MimeMessage.Load(stream);

in the resulting message all attachments are included

zabszk commented

Hi,

I have been testing MimeKit recently and it should work fine. In the future I plan to use it in this project.