Connect-Mailbox
Command Description
Connect to IMAP server and return the connection object
Command Prototype
objIMAP = IMAP.Connect(sHost,sAccout,sPassword,iPort,bUsessl,sAddress)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sHost | True | string | "" | IMAP service login host |
sAccout | True | string | "" | IMAP service login account |
sPassword | True | string | "" | IMAP service login password |
iPort | True | number | 143 | IMAP service login port |
bUsessl | True | boolean | None | Use SSL encryption to connect to server. The default is No |
sAddress | True | string | "" | Full email address |
return
objIMAP,The variable used to save the output of the command.
Demo
objIMAP = IMAP.Connect("imap.qq.com","***@qq.com","*****",143,false,"(***@qq.com")
// objIMAP = <imaplib.IMAP4 object at 0x0000014EC0ABDC18>