_Application.MailLogon(Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Logs in to MAPI Mail or Microsoft Exchange and establishes a mail session. If Microsoft Mail isn't already running, you must use this method to establish a mail session before mail or document routing functions can be used.
public void MailLogon (object Name, object Password, object DownloadNewMail);
Public Sub MailLogon (Optional Name As Object, Optional Password As Object, Optional DownloadNewMail As Object)
Parameters
- Name
- Object
Optional Object. The mail account name or Microsoft Exchange profile name. If this argument is omitted, the default mail account name is used.
- Password
- Object
Optional Object. The mail account password. This argument is ignored in Microsoft Exchange.
- DownloadNewMail
- Object
Optional Object. True to download new mail immediately.
Remarks
Microsoft Excel logs off any mail sessions it previously established before attempting to establish the new session.
To piggyback on the system default mail session, omit both the name and password parameters.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기