Connect-Mailbox
Command Description
Connect to a mailbox and use it as the object to control
Command Prototype
objMail = Mail.Connect(sServer, sUid, sPwd, sType, iPort, bSsl)
Parameter Description
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| sServer | True | string | "" | Server address |
| sUid | True | string | "" | Login account |
| sPwd | True | string | "" | Login password |
| sType | True | enum | "POP3" | Use an agreement |
| iPort | True | number | 110 | The POP3 server port (the default is 110), and generally does not need to be modified |
| bSsl | True | boolean | None | Whether to use SSL for encryption. The default value is false |
return
objMail,The variable used to save the output of the command.
Demo
TracePrint("--------------------------Connect mailbox------------------- --------")
//-------------------------------------------------------------------------------
//[Remarks] Connect a mailbox and use it as the operation object.
//Input parameter 1:
// sServer--server address. Note: server address
// sUid--Login account. Note: Login account
// sPwd--login password. Note: login password
// cType--use protocol. Note: login password
// iPort--server port. Note: POP3 server port, the default is 110, generally do not need to be modified
// bSsl--SSL encryption. Note: Whether to use SSL protocol encryption, the default is false
//out parameters:
// objMail--The variable to which the output of the function call is saved.
//Command prototype: objMail = Mail.Connect(sServer, sUid, sPwd, sType, iPort, bSsl)
objMail = Mail.Connect (sServer, sUid, sPwd, "POP3", 110, false)