Export (0) Print
Expand All
Expand Minimize

Application.MailSystem Property

Office 2007
Returns the mail system that's installed on the host machine. Read-only XlMailSystem.

Syntax

expression.MailSystem

expression   A variable that represents an Application object.

Remarks

XlMailSystem can be one of these XlMailSystem constants.
xlMAPI
xlNoMailSystem
xlPowerTalk

Example

This example displays the name of the mail system that's installed on the computer.

Visual Basic for Applications
Select Case Application.MailSystem
    Case xlMAPI
        MsgBox "Mail system is Microsoft Mail"
    Case xlPowerTalk
        MsgBox "Mail system is PowerTalk"
    Case xlNoMailSystem
        MsgBox "No mail system installed"
End Select



Community Additions

ADD
Show:
© 2015 Microsoft