I'm trying to figure out how to grab the email timestamp from an Outlook email. Anyone happen to know how to do this?
Here's a snippet of my code:
use strict;
use Win32::OLE qw(in with);
use Win32::OLE::Const 'Microsoft Outlook';
...
$namespace = ...
$Folder1 = ...
...
$Folder4 = ...
...
foreach $item (in $Folder4->{Items}){
$date = $item->{CreationTime}->Date('ddd MMM dd, yyyy').' '.$item ->{C
+reationTime}->Time('hh:mm:ss tt');
print $date . "\n";
}
That of course only gives me the creation time of the e-mail, which is not what I want. I'm not too sure on how to get the time that the email was sent. As you can tell, I'm pretty new at this, so please let me know if I'm way off track. Your help is appreciated. Thanks.
EDIT:
After looking up the appropriate documentation on MSDN, I found out I
+should be using ReceivedTime. Well, that was simple.