Connect to mailbox
Sign in to a mailbox over IMAP or POP3 as a named session, optionally opening a shared mailbox.
Command in the Email toolkit · id ooa.email/connect · 13 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Incoming mail server (IMAP) | String | Yes | Mail server that the agent reads from (IMAP or POP3 host). | |
| Port | Number | No | 993 | Server port: 993 IMAP over SSL, 143 IMAP, 995 POP3 over SSL, 110 POP3. Left at 993, the usual port of the chosen protocol and security is used. |
| User | String | Yes | Mailbox user name. | |
| Password | Credential | No | Password or app password from the vault. | |
| Access token | Credential | No | OAuth 2.0 access token (Microsoft 365, Gmail) from the vault; or leave it empty and choose a saved sign-in connection, which gets and renews the token. | |
| Protocol | String | No | imap | imap keeps folders and read status on the server; pop3 reads only the inbox and cannot mark or move emails. |
| Security | String | No | ssl | Connection security. |
| Shared mailbox | String | No | Open this shared mailbox with the user's own sign-in (Exchange and Microsoft 365; the user needs full access to it). | |
| Timeout (seconds) | Number | No | 15 | How long to wait for the server to answer when connecting. |
| Session | String | No | mail | Session name. |
| Outgoing mail server (SMTP) | String | No | Outgoing server to keep with this session, so Send, Reply and Forward need no server or sign-in of their own. | |
| SMTP port | Number | No | 587 | 587 for STARTTLS, 465 for SSL. |
| SMTP security | String | No | starttls | Outgoing connection security. |