MailLogon Method Example
This example logs in to mail and downloads any new mail immediately.
If IsNull(Application.MailSession) Then Application.MailLogon "oscarx", "mypassword", True End If