I have imported the dll in a vb.net project.
I need to download pop3 mail messages and save only the attachments on my disk (ex. order.txt).
I intercept the mail messages, but I can not save attachments.
Following your instruction below the example POP3 does not work. The method decodeData does not exist.
What can I do?
foreach (MailContent mg.Contents in ct)
String filePath = "C: \ MyFolder \" + ct.ContentDisposition.FileName;
I save the email text and the content of the attachment in one file, with these instructions
but I need the attachment only with its name for example "order.txt". (Not the email text)
The instruciotn ct.FileName returns always "winmail.dat"
Dim ct As HigLabo.Mime.MimeContent
ms = New MemoryStream
data = ct.RawData
ms.Write (data, 0, data.Length)
ms.Seek (0, 0)
fs = New FileStream (filePath & "sct_rowdata.txt", FileMode.Create, FileAccess.Write)
Can you please help me?