Outbox Property (Session Object)
Outbox Property (Session Object)
The Outbox property returns a Folder object representing the current users Outbox folder. Read-only.
Syntax
objSession.Outbox
Data Type
Object (Folder)
Remarks
The Outbox property returns Nothing if the current user does not have or has not enabled the Outbox folder.
In addition to the general ability to navigate through the formal collection and object hierarchy, CDO supports properties that allow your application to directly access the most common Folder objects:
- The InfoStore objects RootFolder property for the IPM subtree root folder
- The Session objects Inbox property for the Inbox folder
- The Session objects Outbox property for the Outbox folder
Example
' from the function Session_Outbox
Dim objFolder As Object
'
Set objFolder = objSession.Outbox
If objFolder Is Nothing Then
MsgBox "Failed to open Outbox"
Exit Function
End If
MsgBox "Outbox folder name = " & objFolder.Name
Set objMessages = objFolder.Messages