MailSystem Property

Applies To

Application Object.

Description

Returns the mail system installed on the host machine (one of xlNoMailSystem, xlMAPI, or xlPowerTalk). Read-only.

See Also

MailLogoff Method, MailLogon Method, MailSession Property, SendMail Method.

Example

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


Sub foo()
Select Case Application.MailSystem
    Case Is = xlMAPI
        MsgBox "Mail system is Microsoft Mail"
    Case Is = xlPowerTalk
        MsgBox "Mail system is PowerTalk"
    Case Is = xlNoMailSystem
        MsgBox "No mail system installed"
End Select
End Sub