Application.MailSystem method (Project)

Returns the type of email 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

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.