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:

  1. The InfoStore objects RootFolder property for the IPM subtree root folder
  2. The Session objects Inbox property for the Inbox folder
  3. 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
 

See Also

Concepts

Session Object