Application.MailSystem Method

Project Developer Reference

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.

Visual Basic for Applications
  Sub SendMAPI()
If Application.<strong class="bterm">MailSystem</strong> = pjMAPI Then
    MailSend To:="Jean Selva", Subject:="Sample Subject"
End If

End Sub

See Also