Skip to main content
Version: v6.0.0

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​

ParameterRequiredTypeDefaultDescription
sHostTruestring""IMAP service login host
sAccoutTruestring""IMAP service login account
sPasswordTruestring""IMAP service login password
iPortTruenumber143IMAP service login port
bUsesslTruebooleanNoneUse SSL encryption to connect to server. The default is No
sAddressTruestring""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>