Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.MailSystem Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the type of e-mail system installed on the host machine.

Syntax

expression. MailSystem

expression A variable that represents an Application object.

Return Value

PjMailSystem

Remarks

Can return one of the PjMailSystem constants.

Example

The following example sends the project file if the host machine is using MAPI.

Sub SendMAPI() 

 If Application.MailSystem = pjMAPI Then 
 MailSend To:="Jean Selva", Subject:="Sample Subject" 
 End If 

End Sub
© 2017 Microsoft