Application.MailSystem Property

Word Developer Reference

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

Syntax

expression.MailSystem

expression   Required. A variable that represents an Application object.

Remarks

Some of the WdMailSystem constants 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 a message that indicates whether a mail system is installed on the computer.

Visual Basic for Applications
  ms = Application.MailSystem
If ms <> wdNoMailSystem Then
    MsgBox "This computer has a mail system installed."
Else
    MsgBox "This computer has no mail system installed."
End If

See Also