MailSystem Method

Returns the type of e-mail system installed on the host machine.

Syntax

expression**.MailSystem**

*expression   *     Optional. An expression that returns an Application object.

PjMailSystem

Constant Description
pjNoMailSystem Unrecognized or missing e-mail system
pjMAPI Microsoft Mail
pjMAPICompatible E-mail system that is compatible with MAPI

Example

The following example sends the project file if the host machine is using MAPI.

Sub SendMAPI()

    If Application.MailSystem = pjMAPI Then
        MailSend To:="Jean Selva", Subject:="Sample Subject"
    End If

End Sub

Applies to | Application Object

See Also | MailLogoff Method | MailLogon Method | MailPostDocument Method | MailProjectMailCustomize Method | MailRoutingSlip Method | MailSend Method | MailSendScheduleNote Method | MailSession Method | ResourceAddressBook Method | ResourceDetails Method