Skip to main content
Version: v6.0.0

Disconnect-Mailbox

Command Description​

Disconnect the email server that has been connected by Connect Mailbox command

Command Prototype​

Mail.Disconnect(objMail)

Parameter Description​

ParameterRequiredTypeDefaultDescription
objMailTrueexpressionobjMailMailbox object, the mailbox object returned by the command Connect Mailbox (Mail.Connect)

Demo​

TracePrint("----------------------------Disconnect mailbox connection ----------------- ----------") 
//-------------------------------------------------------------------------------
//[Remarks] Disconnect the mailbox server connected via the connect command (Connect).
//Input parameter 1:
// objMail--mailbox object. Note: Mailbox object, the mailbox object returned by the Mail.Connect command
//out parameters:
// None
//Command prototype: Mail.Delete(objMail)
Mail.Disconnect(objMail)