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

Mapi Task behavior

$
0
0
Hi Aspose Team,

When i create a MapiTask by selecting start and due date as 4/28/2015 using below sample code,

MapiTask task = new MapiTask(Task.Subject, body, Task.StartDate, Task.DueDate);
task.PercentComplete = claimTask.PercentComplete;
task.EstimatedEffort = 2000;
task.ActualEffort = 20;
MemoryStream ms = new MemoryStream();
task.Save(ms, TaskSaveFormat.Msg);
ms.Position = 0;
MapiMessage msg = MapiMessage.FromStream(ms);
// Convert to TNEF eml. Such a feature would allow to send messages by mail clients,
/ where the information, specific for Outlook task, would be stored.
MailMessageInterpretor mi = MailMessageInterpretorFactory.Instance.GetIntepretor(msg.MessageClass);
MailMessage eml = mi.InterpretAsTnef(msg);
eml.From = "from address";
eml.To.Clear();
eml.To.Add(new Aspose.Email.Mail.MailAddress("Toaddress");
IEWSClient client = EWSClient.GetEWSClient("----", "---", "---", "--");
client.Send(eml);

After sent it to the assigned user when I open the task email in outlook it is showing 4/27/2015 as incorrect start and due date.
Please any help to investigate this would be really helpful for me.
Do i need to time zone? I don't believe so because I tried with Microsoft outlook, there is no option to set the time zone when create a new Task and MS Outlook works as expected.

Thanks in advance 
Vipin Panwar


Viewing all articles
Browse latest Browse all 1367

Latest Images

Trending Articles



Latest Images