MailSystem Property

Microsoft Word Visual Basic

MailSystem Property

       

Returns the mail system (or systems) installed on the host machine.  Read-only WdMailSystem.

WdMailSystem can be one of these WdMailSystem constants.
wdMAPI
wdNoMailSystem
wdMAPIandPowerTalk
wdPowerTalk

expression.MailSystem

expression   Required. An expression that returns one of the objects in the Applies To list.

Remarks

Some of the constants listed above are available only in Microsoft Office Macintosh Edition. For additional information about these constants, consult the language reference Help included with Microsoft Office Macintosh Edition.

Example

This example displays the mail system installed on the host machine.

ms = Application.MailSystem
If ms <> wdNoMailSystem Then
    MsgBox "This machine has a mail system installed."
Else
    MsgBox "This machine has no mail system installed."
End If