Free Support Forum - groupdocs.com

Get Email attachment

Hello,


i can`t get email attachment if I load a file(msg) from stream.

herer ist my code snippet:

public static String GetEmailAttachment(Stream DocumentName)
{
try
{
ViewerConfig config = Utilities.GetConfigurations();

ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
HtmlOptions options = new HtmlOptions();

string htmlPageAttach = “”;

options.IsResourcesEmbedded = true;

DocumentInfoContainer infoContainer = htmlHandler.GetDocumentInfo(DocumentName);
foreach(AttachmentBase attachment in infoContainer.Attachments)
{
List pages = htmlHandler.GetPages(attachment, options);
foreach(PageHtml page in pages)
{
htmlPageAttach += page.HtmlContent;
}
}
return htmlPageAttach;
}


I think here is the problem -> List pages = htmlHandlerGetPages(attachment, options).
htmlHandler tried looking for the attach-file on my local path, but i get email-file from webservice.

How can I resolve this problem



Hi there,


Thanks for posting your issue.

We have successfully reproduced your reported issue at our end. We shall further investigate this issue and in case of any updates, we will inform you here. Please stay tuned.

Warm Regards

The issues you have found earlier (filed as VIEWERNET-820) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by groupdocs.notifier.
Hello Usman,

I have the same problem as the topic starter, my files are also on another web server. Is the problem already found and is there shortly a fix available?

I already tried the latest version 3.6.

Hi there,


As per release notes, your issue is fixed in GroupDocs.Viewer for .NET 3.6.0. Are you still getting same exception while using v3.6.0?

We shall be waiting for your response.

Warm Regards