Application.MailSystem Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .MailSystem

expression Required. A variable that represents an Application object.

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.

This example displays a message that indicates whether a mail system is installed on the computer.

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
Show: