We recently upgraded from Aspose.Net (version 5.8.0.0 ) to Aspose.Email (version 5.0.0.0). We have 17 offices that use Sharepoint sites and we really appreciate your response as it is affecting our production usage.
So far we have identified 3 issues:
-
Issue with Domain Account that is passed as an email header: The header strips out "". Example : abc\jsmith becomes abcsmith. This is causing big issue while constructing SPUser object in SharePoint 2007 .
We are using spwebObject.EnsureUser(emailMessage.Headers[“UserLogin”]. Currently I have placed a workaround by removing this header value for Aspose Email object and setting a new value for this header (from the object for SPEmailMessage. This object has correct value for the username)
-
For Asian offices, if the body is in Asian language, it comes as “???” (Observed this on a Japanese SharePoint site. Mostly they use English, but some times users send in emails in Japanese language and combination of both).This EML gets saved to SharePoint.We did not have this while using Aspose.Net (version 5.8.0.0). Wondering if there is any property that needs to be set.We did not have to set any properties in the previous version.
-
We have a client that sends email with a header value for “Content-Type” some thing similar to the following:
multipart/mixed; boundary=“----=_Part_73094_1480349756.1432545471814”
This EML gets saved to SharePoint (EML format) and when we click on the file we get 404 error.
Code Snippet for issues 2 and 3 …
Stream msMessage = new MemoryStream();
emailMessage.Save(msMessage, Aspose.Email.Mail.SaveOptions.DefaultEml);
msMessage.Position = 0;
SPFile emailFile = web.Files.Add(“emailDestUrl”, msMessage, hashMetaData);
So far , I had to clear out this header for 45 email files so that users could browse the files from SharePoint(these files were already uploaded into SharePoint and I had to manually go to each folder and update the eml source).
I hope someone can help me resolving these 3 issues ASAP.