J
Jim Schacht
Greetings,
I'm having a heckofa time with the code below. After executing this code in
Outlook XP, I expect the copied item (itmNew) to have a received time/date
stamp because the Save method was executed. When I debug the code I see
that the "Saved" flag returns true, but the "ReceivedTime" value returns
1/1/4501. When I view the item in the explorer window I see that the
received date is "none". From my reading I see that this date is generated
by the transport provider.
I'm not sure if this is pertinent, but the location the item is saved to is
not in the default information store for the profile.
This is about to drive me batty so any help will be greatly appreciated!
<snip>
'If a folder is picked, the following attributes are given to the outbound
message, a copy is made,
'and it is sent.
If fldDestination > "" Then
With itmCurrent
.SentOnBehalfOfName = "Omitted"
.DeleteAfterSubmit = True
strSubject = .Subject
Set itmNew = .Copy
.Send
End With
End If
'The copy is moved to the folder chosen in the folder picker dialog
Dim propEntryID, propStoreID
With itmNew
.Save
propEntryID = .EntryID
.Close (olSave)
End With
<end snip>
Thank you!
Jim
I'm having a heckofa time with the code below. After executing this code in
Outlook XP, I expect the copied item (itmNew) to have a received time/date
stamp because the Save method was executed. When I debug the code I see
that the "Saved" flag returns true, but the "ReceivedTime" value returns
1/1/4501. When I view the item in the explorer window I see that the
received date is "none". From my reading I see that this date is generated
by the transport provider.
I'm not sure if this is pertinent, but the location the item is saved to is
not in the default information store for the profile.
This is about to drive me batty so any help will be greatly appreciated!
<snip>
'If a folder is picked, the following attributes are given to the outbound
message, a copy is made,
'and it is sent.
If fldDestination > "" Then
With itmCurrent
.SentOnBehalfOfName = "Omitted"
.DeleteAfterSubmit = True
strSubject = .Subject
Set itmNew = .Copy
.Send
End With
End If
'The copy is moved to the folder chosen in the folder picker dialog
Dim propEntryID, propStoreID
With itmNew
.Save
propEntryID = .EntryID
.Close (olSave)
End With
<end snip>
Thank you!
Jim