Quantcast
Channel: Aspose.Email Product Family
Viewing all 1367 articles
Browse latest View live

IMAP: Error reading messages with parameter retrieveRecursively set to True

$
0
0
Hi,
I'm trying to use the retrieveRecursively  parameter of the ListMessages function of the ImapClient object. My code is very simple:

Dim messages As ImapMessageInfoCollection = imapClient.ListMessages(ImapFolderInfo.InBox, True)

This line throw an exception with this error message:

AE0011 BAD Error in IMAP command FETCH: Invalid messageset

Is there an alternative way to retrieve all messages from a folder recursively?

Thanks,
Alessandro

problem with outlook 2013 ost file

$
0
0
not able to convert outlook 2013 ost file in pst?

is it possible to convert outlook 2013 ost file format in pst format?

Unable to save LastModified to Calendar Item

$
0
0
When extracting items from a PST, we identify the type (msg, vcard, task, etc) and save it to disk in its proper format.  When doing this with Calendar items, we would like to include the LastModified mapi property so we can later use it when we read the ICS.  This is what Outlook does when you save a calendar item to disk.  

I have not been able to find any way to do this with Aspose.Email.  Can you please explain how I would go about this?

Thanks!

Speed of message retrieval from PST

$
0
0
when doing this, it is taking 1-3 seconds to extract message from PST.  Is there a way to speed it up?

 Dim builder As PersonalStorageQueryBuilder = New PersonalStorageQueryBuilder()
        builder.SentDate.Since(CType("01/01/1970", DateTime), Aspose.Email.DateComparisonType.ByDate)
        Dim messages As MessageInfoCollection = lFolder.GetContents(builder.GetQuery)
        For Each msgInfo As MessageInfo In lFolder.GetContents ' In messages
            'For Each eid As String In lFolder.EnumerateMessagesEntryId()
            ' Extract the message in MapiMessage instance
            Dim msg As MapiMessage = pst.ExtractMessage(msgInfo.EntryId)

Blank result .msg file

$
0
0

An example of creating .msg file Aspose.Email.dll is explained below:

  • We are using Trial version of Aspose.Email.dll 5.4.0.0 (latest from NuGet)
  • Language used - DotNet (C#)
  • Sample html content (see attachment "SampleHtmlContent.txt")
  • Sample code in C# (see attachment "C# Sample code.docx")

Issue we are facing:

  • When we create a .msg file with the content of "Content.txt" we are getting no data (blank email body) in result .msg file
  • If we convert entire content to lower case we get the expected .msg file but the entire content is in lower case.

So the issue could lbe with the HTML tags, attributes or class names as we have capittal and Pascal case data in SmapleHtmlContent.txt, Aspose.Email.dll is not able to parse the html body correctly. But as we convert the entire content to lower case we are able to create the expected outlook file.

Shared Calendars and public calendars

$
0
0
Hi,
     I am going to develop a sample outlook calendar for this i am using aspose for email .net api.
But i have some doubts regarding this. Will it supports shared calendar folders and public calendar folders functionalities like outlook.

Thankyou.

IMAP Idle command.

$
0
0
Does the Aspose.Email library supports the IMAP IDLE command? 
We want the capability to open a connection and wait for e-mail to arrive, instead of having to poll the mail server periodically.

issue

$
0
0
I am getting the following error

System.InvalidOperationException: MessageClass of the item to be added (IPM.Schedule.Meeting.Request) doesn't correspond to the folder's ContainerClass (IPF.Note).
   at Aspose.Email.Outlook.Pst.FolderInfo.AddMapiMessageItem(IMapiMessageItem item)

Code which i am using

MapiMessage MSG = (MapiMessage)SourcePST.ExtractMessage(info).ToMapiMessageItem();
FolderInfo finfo = pst.RootFolder.GetSubFolder("Inbox");
finfo.AddMapiMessageItem(MSG);
                              
PST File Attached

Java email library - HTML content in body is not consumed

$
0
0
I'm using java library trial version to create a .msg file. Here's an example of the HTML body content:

<HTML>
<HEAD></HEAD>
<BODY><?xml version="1.0" encoding="utf-8"?>
<FORM>
<P><FONT face=Arial>&nbsp;</FONT></P>
<P><FONT face=Arial>Thank you for contacting CSS (Customer Support and Services).</FONT></P>
<P><FONT face=Arial>&nbsp;</FONT></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT face=Arial>This email is to confirm receipt of your request. The above Service Order Ticket has been created and will be processed&nbsp;in a timely manner.</FONT></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT face=Arial>&nbsp;</FONT></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT face=Arial>If your matter is urgent and requires immediate attention, we suggest that you follow up with a telephone call or&nbsp;reply to this email&nbsp;so we can prioritize your ticket accordingly. <SPAN class=char>(See contact information below)</SPAN></FONT></P>
</FORM>
</BODY>
</HTML>

the resulting email (.msg) is attached. It does not show all the lines. Something to do with style and font attributes in the <p> tag, i guess. 

Any known issues here? Is there a fix? 

Thanks!

Aspose converting MSG to PDF without inline images

$
0
0
Hello Aspose Team,

In attachment there is a .msg file which images are failing to be properly converted to PDF, they become red Xs in the resulting file.

The code I'm using is the following:

                    FileOutputStream foStream = null;
                    FileInputStream fiStream = null;
                    File tempDocOut = null;
                    try {
                        tempDocOut = File.createTempFile("mcfile", null);
                        foStream = new FileOutputStream(tempDocOut);
                        MailMessage mail = MailMessage.load(msgFilePath);
                        mail.save(foStream, SaveOptions.getDefaultMhtml());
                        foStream.close();
                        fiStream = new FileInputStream(tempDocOut);
                        
                        LoadOptions lo = new LoadOptions();
                        lo.setLoadFormat(LoadFormat.MHTML);
                        Document doc2 = new Document(fiStream, lo);
                        doc2.save(pdfFilePath, com.aspose.words.SaveFormat.PDF);
                    } finally {
                        try {
                            IOUtils.closeQuietly(fiStream);
                            IOUtils.closeQuietly(foStream);
                            tempDocOut.delete();
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                    }

[]'s

Outlook 2010 Crashes when Opening PST

$
0
0
Hi,

We have been using aspose-email-6.5.0.0 to convert email messages into PST. But we have issue when opening those PST in Outlook client 2010. The outlook is getting crashed and we have to explicitly close it and re-open the outlook again. But if we try the same with Outlook 2013 I am not seeing this issue. We have our customer using Outlook 2010 and we need this to be fixed.

Is this any peculiar reason why is it not working with Outlook 2010? Can you please let me know did we have similar issue before and if is it fixed in any other newer version?

Appreciate if you could respond quickly as this is causing very critical issue.

Regards,
Naresh

Font error in email opening

$
0
0
Hi, 

we get the following issue when try to open the attached email. What is the issue here?

Caused by: class com.aspose.email.system.exceptions.ArgumentException: Font 'Vijaya' does not support style 'Regular'
com.aspose.email.internal.h.f.a(Unknown Source)
com.aspose.email.internal.h.f.<init>(Unknown Source)
com.aspose.email.internal.h.f.<init>(Unknown Source)
com.aspose.email.internal.h.f.<init>(Unknown Source)
com.aspose.email.us.j(SourceFile:600)
com.aspose.email.us.a(SourceFile:549)
com.aspose.email.us.h(SourceFile:535)
com.aspose.email.us.a(SourceFile:276)
com.aspose.email.aww.g(SourceFile:267)
com.aspose.email.MapiMessageItemBase.d(SourceFile:1640)
com.aspose.email.MapiMessageItemBase.getBodyType(SourceFile:527)
com.aspose.email.MapiMessageItemBase.getBody(SourceFile:991)
com.aspose.email.MapiMessage.e(SourceFile:3908)
com.aspose.email.MapiMessage.a(SourceFile:2799)
com.aspose.email.MapiMessage.b(SourceFile:2449)
com.aspose.email.MapiMessage.fromMailMessage(SourceFile:1402)
com.aspose.email.MapiMessage.fromMailMessage(SourceFile:1357)


Thanks,
Mariusz

Multiple recipient header in eml file are not recognized

$
0
0

Hello,


I am using aspose email to convert eml files into pdfs. Now I have encountered some .eml files that specify multiple recipients (To: header) each in a separate line. However aspose only delivers the first one.

 

I attached my test case. Would you please look into this issue?

Email Sender name is not similar in the pdf rendition, to the Source eml file

$
0
0
Hi,

I am using Aspose to convert email to pdf.
The pdf rendition of the source efl file differs from the original, as you can see in the attached files, the 'To' section of the source file and the target file differs. Can you suggest something to keep the source and the target similar.

PFA source file, target file along with screenshots.

Thanks.

Regrads,
Ankur Vashishtha

Aspose 16.11.0.0 is very slow as compare to Apose 6.4.0.0

$
0
0
Hello Team,

I've been purchased & using Aspose.Email to create Pst file, as earlier i was using 6.4 version of aspose, but due to some issue of loading fail eml support member suggested to use latest version of aspose 16.11.0.0.

So i used latest version but i've noticed that in 6.4 version of aspose for conversion of 1lakh eml files to pst it use to take 35 hours but as compare to 16.11.0.0 it took 71 hours.

I've cross check these same by create two application one with 6.4 and one with 16.11.

The 16.11 one is very slow, can you please check this out as this is very critical for us.

Please correct me if i am wrong in any part.

Looking for positive response.

Thank You.

Regards,
Amit

Performance of Adding Recipients

$
0
0
I'm having problems when creating an MSG file with large numbers of recipients. I've created a test file and attached it which will demonstrate the timing curve.

I can create a MSG file with about 2500 recipients and set about 36 Mapi properties per recipient in under a minute. When I get to 5400 recipients it takes about 15 minutes. When I get to 9000 it takes about an hour to build the MSG file.

I have a customer with > 10000 recipients and I can't have them wait an hour to generate a single MSG file. I'm hoping you can look into this performance issue and offer some suggestions to enhancing the performance.

Thanks,
//Christopher

Convert eml to MSG format.

$
0
0

Hi,

Currently we are facing issue on production while converting eml to msg format in java web application.

previously we are downloading the eml file after clicked the "Open" button on front end.

We are getting byte array of eml file. so we want convert this byte array into MSG format.

Could you please provide the solution for this requirement?

Thanks in advance.

Regards,

RSY

 

 

UTF8 encoding issues converting EML to MSG

$
0
0
We have issues converting EML to MSG with UTF8 characters in subject, sender name and recipient name. 
Message received directly in Outlook with the same UTF8 format of subject, sender and recipient name is displayed correctly, therefore we have excluded issues with EML formatting. EML is also displayed correctly with EML viewers but converted MSG is displayed incorrectly in both Outlook and alternative MSG viewers.

I am attaching EML and MSG with issues and corresponding display (PNG) of messages depicting issues with character display.

We are using licensed Aspose.Email for .NET version 5.6.0.

convert .eml to .msg

$
0
0

Hi Team,

I am trying to convert .eml to .msg format and upload the .msg to our document management system(LiveLink).

 

When I download and save the file[ from(.eml)/to(.msg) ] in disk  and upload to LiveLink it works fine but when I convert and save as stream no error from aspose but our document management system is unable to recognize the format .

Please refer to the below format [.net framework 4.5]

Stream stream = new MemoryStream(emailMsg.MimeContent.Content);

 MemoryStream msgstream = new MemoryStream();

Aspose.Email.Mail.MailMessage objmessage = Aspose.Email.Mail.MailMessage.Load(stream, MailMessageLoadOptions.DefaultEml);


objmessage.Save(msgstream,MessageFormat.Msg );

Can you please check and revert to me what is the issue .

 

 

 

Convert eml to msg

$
0
0
I have a requirement to convert an email I received from the Exchange Web Service. Your programmers guide has sample code for converting an eml file to a msg file. However, the only sample code is in VB and C# there is no sample in Java. In fact, the java classes do not appear to have a class that represents an eml formatted message.
 
Your sample code in C# does the following:
 

//load mail message

MailMessage eml = MailMessage.Load("test.eml");

//convert to MapiMessage

MapiMessage msg = MapiMessage.FromMailMessage(eml);

//save to msg file

msg.Save("test.msg");

I need to be able to do the same thing in Java. Here are my problems:

1. I do not see a MailMessage class in the JavaDocs

2. The MapiMessage class does not have save() or fromMailMessage() methods

3. I would like for the save method to be able to accept an OutputStream as well as the name of a file since I need to insert the msg data into LiveLink using one of their API's and if I can get an OutputStream then I can write it to a byte[] which I can pass to LiveLink directly without writing an intermediate file.

Since looking at the sample code I found the documentation on what was implmented in java and it does not include the ability to convert eml to msg. So instead of answering that it is not available right now please give me some idea of if and when it might be available.
 
Viewing all 1367 articles
Browse latest View live