Disconnect-Mailbox
Command Description
Disconnect the email server that has been connected by Connect Mailbox command
Command Prototype
Mail.Disconnect(objMail)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objMail | True | expression | objMail | Mailbox 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)