I am creating a mail item in a public folder using the apose email toolkit.
This seems to work perfectly in exchange 2013 but when we upload into exchange 2010 it seems to drop the date and as such all emails then end up with a sent date time as when they were filed rather than when they were sent. Am I missing something or does this command not work in exchange 2010 at all. Any help would be greatly appreciated.
msg.DateTimeSent = m.Date;
msg.ExtendedProperty = new ExtendedPropertyType;
msg.ExtendedProperty = type;
ciType.Items.Items = new ItemType;
ciType.Items.Items = msg;
CreateItemResponseType response = Global.ExchangeServiceBinding.CreateItem(ciType);
Basically, on 2013 the date sticks and on 2010 it doesn’t.