Application.MailSystem property (Excel)
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 constants:
- xlNoMailSystem
- xlPowerTalk
Example
This example displays the name of the mail system that's installed on the computer.
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.