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

Timezone property for recurrence

$
0
0
Hello Team,

I've been using Aspose.email to create appointment in .pst file(Microsoft Outlook).

I'm not able to find the how to set the timezone property in appointment for recurrence.

In MapiCalendar object there are two properties EndDateTimeZone and StartDateTimeZone i'm not able to understand how to set if i want it that time zone should be set what-ever machine timezone is.

Cause if i don't set the timezone properties i think the time conversion is been done on basis of UTC ( Universal Timezone).

Currently i'm using Aspose.Email 6.4.0.0, i know that least is 17.5.0.0 but i can't upgrade as we have deployed so am looking to set the property in 6.4.0.0 itself.

Can you please look into this and help me out, cause we are running out of time.

Thank You.

Regards,
Amit

Inline attachment check logic has stopped working since 17.4

$
0
0
Hi,

We were using logic suggested in following article to identify whether an attachment is an inline attachment or not while processing an email file

https://docs.aspose.com/display/emailjava/Differentiate+between+Inline+and+Regular+Attachments

This has stopped working since 17.4, it has even stopped compiling due to apparent changes in contains() API.

Please let us know the new way of identifying inline attachments asap.

Thanks,
Rajiv

Sent Time missing in PST file

$
0
0
Hello Team,

I have to convert MBOX file to PST file. But after creating PST file , Sent Time is missing. It is saying none. I am using Aspose MboxrdStorageReader for reading on Mac OS X 10.10.3(JAVA Lang.). Please refer below code.

********  Source Code  *******  

MboxrdStorageReader  objMBOXReader = null;

MapiMessage f_objMapiMessage = null;


try
{

objMBOXReader = new MboxrdStorageReader(this.m_StrSourceFilePathtrue);


int f_intMailCount = 0;


  while ((f_objMailMessage = objMBOXReader.readNextMessage()) != null //iterate mails

    {

try

{

    f_intMailCount++;

    f_objMapiMessage= MapiMessage.fromMailMessage(f_objMailMessage);


  f_Inboxfolder = f_ObjPersonalStorage.getRootFolder().getSubFolder("Mails");


 f_Inboxfolder.addMessage(f_objMailMessage);

        }

        catch(Exception pObj)

        {

    pObj.printStackTrace();

        }


    }//end of while loop




 }//end of outer try

 catch(Exception pObj)

 {

     pObj.printStackTrace();

 }


Please see PST file after open it in microsoft outlook.


Licence file not found when running C# Program via .exe in commandline

$
0
0
When running my program as an .exe file via commandline, when running these lines:

Aspose.Email.License license = new Aspose.Email.License();
license.SetLicense("Aspose.Email.lic");

I receive the following error:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Aspose.Email, Version=17.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. The system cannot find the file specified.
   at ProcessPst.Program.Main(String[] args)

Not sure what I can do to fix this. I have tried embedding the .lic file etc but hasn't helped. It works when you run via the C# console in debug mode but as soon as you try release it throws this error. 

Any help would be much appreciated. 
Cheers,
Vanessa

How to set Recurrence string in Mapi Calender

$
0
0
Hello Team,

Can you please provide any example of daily recurrence and can tell us how to set recurrence string ?

Please refer the screenshot.

Thank You.

Regards,
Amit

Daily recurrence time is getting changed in appointment

$
0
0
Hello Team,

I've been using Aspose.Email to create appointment in .pst(Microsoft Outlook) file.

I am trying to set daily recurrence in the appointment by providing date time but some how its getting changed after exporting.  

I've written every explanation in the code once you see the code in the attachment.

I'm using Aspose.Email 6.4.0.0, i know this issue is solved using the same code in your latest version 17.5.0.0.

But its very very hard to change the code as latest api required some namespace changes and we can't redeploy using latest version and its a very huge change and critical for us.

Can you please escalate this issue to your higher authority and cause we are losing money and our project and our company will get shutdown due to that.

I am requesting you that is it possible to solve this issue in 6.4.0.0 version as we have already purchased your API but can't upgrade and redeploy.

So can you please escalate this issue to higher authority and take it on high-priority please.

Looking for positive response.

Thank You.

Regards,
Amit

How to Add Voting Buttons

$
0
0
Hi, I have some code which generates mail message object. This works fine and I can send it as expected. I am now trying to add some voting buttons to it. From reading the documentation I don’t think this is possible. Sounds very much like I’d have to create a Mapi Message. If I create a mapi message this just creates a MSG object, can’t see any obvious way of sending it. I’ve tried converting the mail message to mapi, then adding voting buttons and then converting back but this doesn’t work. Any suggestions please?

SOAP header Action was not understood

$
0
0
Hi,

We are getting "SOAP header Action was not understood" error on IEWSClient.ListMessages function when calling any outlook.office365.com mailboxes. Sample code below:

NetworkCredential credentials = new NetworkCredential();
credentials.UserName = Options.MailProcessDefinition.UserName;
credentials.Password = Options.Password;
credentials.Domain = Options.MailProcessDefinition.Domain;

IEWSClient client = EWSClient.GetEWSClient("https://outlook.office365.com/ews/Exchange.asmx", credentials);
client.ListMessages(mailBoxFolderUri, numberOfMessages);

Error appears quite often but not constantly. Is this a known issue? if so is there a workaround?

We are using Aspose.Email 17.4.0.0

Thanks.

merge pst with ost File (Like outlook Import)

$
0
0
Hello
I try to merge a pst file with ost or merge one file with another.(Like outlook import)
I used the method (saveAS and mergeWith) but each time it does not work

Outlook 2010
Ost = Office365 Account

Thank you in advance for your help
Soufiane

EWSClient: Error on appointments folder in Office365

$
0
0
Here is another version of the test code. It adds code to demonstrate the date error on some of the items in the US Holidays folder

Object Reference error when using EWSClient.GetContacs

$
0
0
After upgrading to 17.4, Aspose Email throws an Object reference exception when trying to GetContacts from office365.

This is the code I'm using:
var client =EWSClient.GetEWSClient(MAILSERVER, mailAddress, mailPassword, domain);
var contactCollection = client.GetContacts(client.MailboxInfo.ContactsUri);

This is the error I get:
2017/05/23 12:28:03.604 EXCEPTN [26]   Services.DataService.Helpers.HttpStatusCodeExceptionHandler Handle - System.NullReferenceException from Aspose.Email
2017/05/23 12:28:03.619 EXCEPTN [26]   Services.DataService.Helpers.HttpStatusCodeExceptionHandler Handle - Object reference not set to an instance of an object.
2017/05/23 12:28:03.619 EXCEPTN [26]   Services.DataService.Helpers.HttpStatusCodeExceptionHandler Handle -    at #=qHx$H819s6J8V8_2Ad3PdzPWfCuzyVmTBJG$1SpkOykZULl4DXYPkQDi2w8i2y25Q.#=qyBTs6Pm2XT7rrY_lTARbYAXxNwFe2_ZmWVzZbGSX4bk=(ContactItemType #=qmVrhCJV6clysV3ksht4VgQ==, List`1 #=q3j$EWAIrro_hVJZ65SVzXq2hZgNr8TS$0JctaJu_Ypo=)
   at #=q$URVFJ46Py_sB1wW4BhrMlxBBAff4rCUmTy697lRNldEs5shCrH0bISWYGq4qZttr2BeOO9wOaIaWYtwWk6gnQ==.#=qelzCaEmFjO5lCC_iw6H$rw==(List`1 #=qXbHE6Sf3DIOashJDq1P$iA==, ExchangeListContactsOptions #=qnVinIpv3grjH1YTaHEyVNw==)
   at #=q$URVFJ46Py_sB1wW4BhrMlxBBAff4rCUmTy697lRNldEs5shCrH0bISWYGq4qZttr2BeOO9wOaIaWYtwWk6gnQ==.GetContacts(String #=q9wodUnHA4FXo71BdJz4meA==)
   at Services.DataService.Controllers.DocumentsController.Contacts(String emailpass) in C:\Workspace\6.2Patch\Source\Services\REST\DataService\Controllers\DocumentsController.cs:line 1447
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)

The method GetMailboxes() throws a similar exception.

Thanks,

Felix Lopez-Phillips
Senior Software Engineer

DOCUPHASE

+1.727.441.8228
www.docuphase.com


ewsclient and cache folders

$
0
0
When connecting to Exchange with ewsclient and listing folders, there are folders that are used for contact caching.

5/11/2017 3:28:50 PM: [Enumerate (I)] Contacts\Recipient Cache(2) Folder type is Contact

Trying to access the message as a contact fails. According to what I have been able to find, this is a hidden folder. Here is one of the responses to questions about the recipient cache.

From the article WellKnownFolderName enumeration, we can know that the RecipientCache field is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

This is a new Exchange 2013 folder which is a hidden subfolder of the Contacts folder with a mailbox and its purpose isn't really documented at the moment, but contains like the AutoComplete cache, Addresses for Sent Emails.

Would it be possible for the ewsClient to show the hidden flag (if it even exists) in the list folders collection?

Thanks

To, CC and BCC not displaying in Outlook

$
0
0
This may be an issue with our code but if we take a source PST and open it in Outlook we see the TO, CC and BCC (if they were in the message). If we then create a PST with ASPOSE, and open the new PST in Outlook, the TO, CC and BCC fields are blank. If you look at the PST in Kernel Outlook PST Viewer, the fields appear to be in the message. We tested with older versions of our source and found the change to 17.2 seems to be where the problem started. Running the code with pre 17.2 works fine and the new PST display in Outlook as expected.

I cannot say with certainty that something we change in our code did not cause this effect but our release 321 works and 322, which is 17.2 and a couple of seemingly unrelated changes in our code, fails.

Can you try and confirm this behavior in 17.2 and greater. We are currently on 17.4.

Thank you

Unable to load calendar response mails

$
0
0
Hi,

MailMessage class crashes when it try to load any calendar response mails. An file sample is attached.

We are using Aspose.Email 17.4.0.0

Thanks.

Creation Date of Attachment in Email

$
0
0
Hello Team,

I'm using Aspose.Email to create appointment and mails in PST file.

Can you please give me example code of setting creation date of attachment in email ?

Thank You.

Regards,
Amit

VS 2017 debugging

$
0
0
When debugging, hovering over the ImapClient object causes an error:
Evaluating the function 'Aspose.Email.CredentialsByHostClient.ConnectionState.get'
timed out and needed to be aborted in an unsafe way.

Here is a link to the MS article: https://docs.microsoft.com/en-us/visualstudio/debugger/error-evaluating-the-function-function-timed-out-and-needed-to-be-aborted-in-an-unsafe-way. It has several solutions. It looks like Solution #1 would be the most desirable of the 3 they list.

Thanks

Read .ics file

$
0
0
Hi Aspose Team,
Is there any library from aspose to parse / read all the events in icalender file (.ics) file.

Please find the attached example .ics file. I want to read all holiday events in this file .

Thanks,

Calendar Attachment Creation and modified dates are not setting proper

$
0
0
Hello Team,

I've been using Aspose.Email to create calendar in .pst (Microsoft Outlook File)

When i create attachment and set created, modified and last access date its not able to set.

But if i do with Mail means when a create a Mail And do the same like add attachment and set create date there is no problem in it, it gets set the problem is with calendar.

I've tested this with Aspose.Email 17.6 version and it is working, but i'm using version 6.4, is there any work-around that you can suggest, as we cannot upgrade the version and can't redeploy, so far you guy have done and created very efficient api and supports me in every manner, this is the last thing i'm requesting if it goes well i would be really thankful, and really appericate the kind of work your are doing.

And for cross verifying i use to open the pst , then open that calendar and use to save the attachment on disk and then by right-clicking and Properties of File (that's metadata), i've also attached save pst using both Aspose Version and also screenshots , you may find the code, screenshots and pst's in the attachment

Please review the code in the attachment.

We want this issue to be solved at high - priority please as we have to give the solution.

Looking for positive response.

Thank You.

Regards,
Amit

SMTP send: The server committed a protocol violation.

$
0
0
Last Friday, I created a new thread: 

Posted By: peterhuppertz in Aspose.Email Product Family
Subject: [SMTP] The server committed a protocol violation. The server response was: Enter mail, end with &quot;.&quot; on a line by itself'. The link to that topic was 
http://www.aspose.com/community/forums/thread/839521.aspx 

I can see in my email that Kashif responded to this. However, the thread appears to have disappeared. :-o
Therefore, I open this new topic to breathe life back into the issue. 

My question was (and is) as follows: 
We have a situation wherein, on one particular host, while using Aspose.Email to send a message via SMTP, the client throws an error stating: 

"The server committed a protocol violation. The server response was: Enter mail, end with "." on a line by itself'."

On a different SMTP host in the same network, running the code works just fine. 

I've written some test code, which is in the attached file 

TestAsposeEmail.zip (I took the license files out). 
This program outputted a couple log files, which are attached in 

testAsposeEmailLogs 24-04-2017.zip


The file SmtpTest.log contains the actual exception thrown by the "offending" system. 

The file called Aspose.Email.SMTP_2017-4-24.log is a text file that echos the SMTP dialogs. The first half is the dialog as conducted by the system on which the dialog fails (10.13.10.60); the second part (172.16.4.83) is the working system. 

What puzzles me is what would trigger the protocol violation exception in the first dialog - I don't see anything wrong there.
 

Kashif then responded the same day, as follows:

I have tested this issue using my test account credentials and observed no issue. It seems to be specific issue with your server settings. I have shared the log files with my product team and will write back here as soon as some feedback is received.

I'm not amazed that you could not replicate this, as I myself have been unable to replicate the behaviour here. I would be interested to know what specific situation or setting could cause this behaviour to occur, as the SMTP dialog itself, including the response that the server coughs up, seems to be perfectly valid. 

Regards,

Peter



Upgraded to new Aspose.Email library on .NET ... now seeing compiler errors ...

$
0
0
It seems some of the classes have been refactored ... here are the compiler errors I am now getting:
The type or namespace name 'CredentialsByHostClient' does not exist in the namespace 'Aspose.Email' (are you missing an assembly reference?)
The type or namespace name 'Pop3Client' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'ImapClient' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'Pop3MessageInfo' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'ImapMessageInfo' could not be found (are you missing a using directive or an assembly reference?)

Where are these classes? Where is the doc that shows how to use these now?

thanks!
Viewing all 1367 articles
Browse latest View live