Aspose Forum » Email
8 FOLLOWERS
Get technical support of Aspose.Email for .NET, Java, C++, Android, Python, iOS, Mac, Xamarin, .NET Core, and SharePoint in this section of the forum. This public forum is used to discuss issues that are common to multiple Aspose products.
Aspose Forum » Email
1w ago
Hi,
We are trying to convert eml to html using Aspose.Email using below code.
var message = MailMessage.Load(“message.eml”);
Aspose.Email.HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions
{
HtmlFormatOptions = HtmlFormatOptions.WriteHeader | HtmlFormatOptions.WriteCompleteEmailAddress
};
message.Save(“output.html”, htmlSaveOptions);
Could you please let us know how can we set the margins using “CssStyles” ?
Thanks,
Ambika
2 posts - 2 participants
Read full topic ..read more
Aspose Forum » Email
1w ago
When we try to upgrade from version 23.3 to 23.4 of Aspose.Email for Java, we notice a change in behavior.
db.7z (50.2 KB)
In the attached pst, when we use aspose to extract a task item which according to outlook has no attachment in version 23.3 and before, yet in 23.4 it now shows an attachment of .ics content (calendar), with the following contents:
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:-//Aspose Ltd//iCalendar Builder (v3.0)//EN
VERSION:2.0
BEGIN:VTODO
ORGANIZER;CN=IronHold Test:mailto:/o=BGCN/ou=Exchange Administrative Group
(FYDIBOHF23SPDLT)/cn=Recipients/cn=08d2efd99c1d45f2b1f5ccf43b25e ..read more
Aspose Forum » Email
2w ago
The Aspose getters and setters that use Java Date all do this, and ruin timestamps instead of leaving them alone.
java.util.Date is not intended to be used as a timestamp with timezone. From the JavaDoc:
Allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as “the epoch”, namely January 1, 1970, 00:00:00 GMT.
This drove us NUTS until we found out by peeking into the JAR that Aspose was in fact offsetting the timestamps:
public static DateTime fromJava(Date javaDate) {
if (javaDate == null) {
r ..read more
Aspose Forum » Email
2w ago
Hi All,
Has anyone seen this issue and know the reason/how to fix it?
Caused by: java.lang.NullPointerException
at com.aspose.email.MapiAttachment.a(SourceFile:665)
at com.aspose.email.MapiAttachment.b(SourceFile:579)
at com.aspose.email.zahx.a(SourceFile:2103)
at com.aspose.email.zahx.a(SourceFile:680)
at com.aspose.email.zawg.a(SourceFile:1132)
at com.aspose.email.FolderInfo.addMessage(SourceFile:758)
at com.aspose.email.FolderInfo.addMapiMessageItem(SourceFile:871)
Version: 21.6 (Java)
Thanks
2 posts - 2 participants
Read full topic ..read more
Aspose Forum » Email
3w ago
We’re currently evaluating different platforms of the Aspose.Email family for large PST extraction jobs. In a sample scenario of extracting attachments from approx 1,000,000 messages, we’ve found a significant performance difference between the Aspose Email for .NET in C# .NET 8.0 and Python via .NET libraries.
Between the two, the Python version executes more than twice as fast (averaging 5-6 minutes for the Python script versus 12-15 minutes in C#).
Is there any known cause for the performance disparity? Or something we should be doing differently in C# to achieve better performance?
Sample ..read more
Aspose Forum » Email
3w ago
Hello Team,
We have some emails in which Recipients Display name are in Russian characters. When we are trying to fetch the recipients through below code in Java, the display name is displayed as “???”. But when we use the encoding as utf-16, it is displayed properly. But it might not be the case that for each recipient display name, the encoding is utf-16, it might be some other encoding as well.
So how how do we determine the encoding of the recipient display name, so that they are all extracted and displayed properly.
MapiMessage msg // Here we have the MapiMessage of that particular email ..read more
Aspose Forum » Email
3w ago
I am enumerating senders/recipients of emails in a PST but want to avoid using .ExtractMessage for performance reasons. I can use .ExtractProperty to obtain PR_SENDER_EMAIL_ADDRESS_W but when I extract PR_MESSAGE_RECIPIENTS it always returns null despite there being recipients.
Can anyone provide guidance on how to extract the recipients from an email without the overhead of .ExtractMessage?
Code looks somewhat like this…
foreach (MessageInfo msgInfo in folder.EnumerateMessages())
{
// Extract Date/Time
MapiProperty propSubmitTime = pst.ExtractProperty(msgInfo.EntryId, MapiPropertyTag.PR_CLIEN ..read more
Aspose Forum » Email
3w ago
Hello!
I use the following code from Detecting inline attachments problem to detect inline attachments:
public static boolean isInlineAttachment(MapiAttachment att, MapiMessage msg) {
if (msg.getBodyType() == BodyContentType.PlainText)
// ignore indications for plain text messages
return false;
else if (msg.getBodyType() == BodyContentType.Html) {
// check the PidTagAttachFlags property
Long attachFlagsValue = att.getPropertyLong(MapiPropertyTag.PR_ATTACH_FLAGS);
if (attachFlagsValue != null && (attachFlagsValue > 3 || attachFlagsValu ..read more
Aspose Forum » Email
3w ago
Are you looking for the best way to open PST files on your Mac? Don’t worry! We have you covered with a simple and effective solution. You can execute it manually or use the most dependable tool. The manual technique requires you to follow a lengthy procedure, and there is a considerable risk of data loss. In this detailed article, we’ll walk you through the steps for accessing PST files on Mac with or without Outlook. The PST viewer is a sophisticated tool that facilitates the conversion process. The PST viewer has a user-friendly interface and powerful features that allow a flawless conversi ..read more
Aspose Forum » Email
1M ago
Previously, using Aspose.Email for Java 21.5, connecting to a shared mailbox was achievable by configuring the username in the format useraccount\actualmailbox over IMAP. However, this approach appears to no longer work with Aspose.Email for Java 22.10. Can you confirm if this functionality has changed?
2 posts - 2 participants
Read full topic ..read more