Can AddInExpress for VCL get the CreatedDate for an email?

Add-in Express™ Support Service
That's what is more important than anything else

Can AddInExpress for VCL get the CreatedDate for an email?
 
Myles Wakeham




Posts: 42
Joined: 2005-05-11
Is it possible with Delphi 7 and VCL to get the date that an email was created using AddInExpress? I tried to review the properties of the MailItem collection through the following code:

EmailDateTime := (OutlookApp.ActiveInspector.CurrentItem as MailItem)....

however it doesn't show up as an available property. How can this information be obtained in Delphi 7?

Thanks
Myles
Posted 13 Jun, 2006 20:27:32 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Myles,

CreationTime Property
Returns a Date indicating the creation time for the Outlook item. This property corresponds to the MAPI property PR_CREATION_TIME. Read-only.


var
  EmailDateTime: TDateTime;
begin
  EmailDateTime := (OutlookApp.ActiveInspector.CurrentItem as MailItem).CreationTime;
  // ...
end;


Posted 14 Jun, 2006 03:08:58 Top
Taco Oosterkamp




Posts: 15
Joined: 2006-06-15
Dmitry,

Is there a way to obtain the date + time of when the message was sent by the sender?

I've tried to find it to no avail. Maybe overlooking something obvious.

Kind regards,
Taco Oosterkamp
Posted 15 Jun, 2006 03:39:23 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Taco,

SentOn Property

Returns a Date indicating the date and time on which the mail message, meeting item, or post was sent. This property corresponds to the MAPI property PR_CLIENT_SUBMIT_TIME. When you send a meeting request item using the object's Send method, the transport provider sets the ReceivedTime and SentOn properties for you. Read-only.

Posted 16 Jun, 2006 05:43:06 Top
Taco Oosterkamp




Posts: 15
Joined: 2006-06-15
Thanks Dmitry.
Posted 17 Jun, 2006 04:49:03 Top