zabszk / CSharp-SMTP-Server

SMTP Server in C#
MIT License
16 stars 4 forks source link

Email messages missing attachments. #4

Closed alexhiggins732 closed 9 months ago

alexhiggins732 commented 3 years ago

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

ESEricWare commented 12 months ago

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 11 months ago

Hi,

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

zabszk commented 9 months ago

Feature has been implemented in the version 1.1.6, which has just been released.