MailLogoff Method

Applies To

Application Object.

Description

Closes a MAPI mail session established by Microsoft Excel.

Syntax

object.MailLogoff

object

Required. The Application object.

Remarks

This method cannot be used to close or log off Microsoft Mail.

See Also

MailLogon Method, MailSession Property, SendMail Method.

Example

This example closes the established mail session if there is one.


If Not IsNull(Application.MailSession) Then Application.MailLogoff