Hello,
It seems, that my customer sent me an EML file with attached documents, Rebex.Mail is unable to find.
This EML file is in "rebex-eml-attachment.zip" I uploaded on: {link removed}
My code snippet is below.
In this snippet I see, that "rebexMailDoc.Attachments.Count()" value is 0. But Microsoft Outlook shows me 3 attached PDF files if I try use it.
I use Rebex.Mail component version 6.0.8123.0
Please let me know if you have newest version of Rebex.Mail, that is able to extract attached documents from EML file I attached.
Mikhael
Const sSrcFile = "C:\In\7b. Bastion Capital confirmations - Danidan Capital 310714.eml"
Const sOutFolder = "D:\out"
Try
Dim rebexMailDoc = New Rebex.Mail.MailMessage
rebexMailDoc.Load(sSrcFile)
For Each attFile In rebexMailDoc.Attachments
Dim sDisplayFileName = attFile.DisplayName
If String.IsNullOrEmpty(sDisplayFileName) Then
Continue For
End If
Dim sAttFilePath = CombinePath(sOutFolder, sDisplayFileName)
attFile.Save(sAttFilePath)
Next
Catch ex As Exception
Console.WriteLine("Error! Message: " + ex.Message)
End Try