Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.36 KB

Project.Application.MailLogon.md

File metadata and controls

54 lines (32 loc) · 1.36 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.MailLogon method (Project)
project-server
Project.Application.MailLogon
0047a6ea-ea36-498c-e744-c4c88a08baae
06/08/2017
medium

Application.MailLogon method (Project)

Logs on to a MAPI mail system and establishes a mail session. A mail session must be established before mail or document routing methods can be used.

Syntax

expression. MailLogon( _Name_, _Password_, _DownloadNewMail_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Name Optional String The mail account name.
Password Optional String The mail account password.
DownloadNewMail Optional Boolean True if new mail is downloaded immediately.

Remarks

Previously established mail sessions are logged off before an attempt is made to establish the new session. Omit both Name and Password to use the default mail session for the system.

Example

The following example logs on to the mail system and downloads any new mail.

Sub SessionLogon() 
 
 If IsNull(MailSession) Then 
 Application.MailLogon "oscarx", "mypassword", True 
 End If 
 
End Sub

[!includeSupport and feedback]