connect Method
Connects to an IMAP server.
Syntax
def connect() -> None: ...
Remarks
This method connects to the IMAP server specified by mail_server and authenticates using the user name and password supplied in the user and password properties.
Example (Connect IMAP Server)
IMAPControl.MailServer = "myserver" IMAPControl.Mailbox = "INBOX" IMAPControl.User = "myusername" IMAPControl.Password = "mypassword" IMAPControl.Connect() IMAPControl.MailServer = "myserver" IMAPControl.Mailbox = "DOMAIN/USERNT/INBOX" IMAPControl.User = "myusername" IMAPControl.Password = "mypassword" IMAPControl.Connect()