pt_email_client
Configure a host's desktop email account, then send or receive messages through Packet Tracer's SMTP and POP3 servers.
Instructions
A host's Desktop > Email.
action="configure": name, address (alice@lab.com), username, password, smtp_server, pop3_server (IP or name of the Server running EMAIL).
action="send": to, subject, body (uses the configured account).
action="receive": asks the POP3 server for mail (it shows in the window; PT does not expose the mailbox through the API). Server accounts are created with pt_server_service(service="email"). The server's Domain Name and SMTP/POP3 switches are set with pt_server_service(server, "email", domain=..., smtp=..., pop3=...).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device": "<device>"
},
"name": "pt_email_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| body | No | ||
| name | No | ||
| show | No | ||
| action | No | configure | |
| device | Yes | ||
| address | No | ||
| capture | No | ||
| subject | No | ||
| password | No | ||
| username | No | ||
| output_dir | No | screenshots | |
| pop3_server | No | ||
| smtp_server | No |