IMAP and SMTP
Read and search over IMAP, usually port 993 with TLS. Send over SMTP, usually port 587 with STARTTLS. IMAP and SMTP.
IMAP does not include calendar or contacts, and it has no single push standard. The links are the specifications and the two large providers’ own notes.
Read and search over IMAP, usually port 993 with TLS. Send over SMTP, usually port 587 with STARTTLS. IMAP and SMTP.
Gmail IMAP needs the restricted https://mail.google.com/ scope. Microsoft IMAP and SMTP need IMAP.AccessAsUser.All and SMTP.Send on the Exchange resource, and the tenant must allow those protocols. Gmail IMAP, Microsoft SMTP.
Servers that offer CONDSTORE and QRESYNC can report vanished messages. Others need UID and flag comparisons. IDLE is per mailbox, not a webhook. QRESYNC.
Hosts are filled from a provider table, the domain autoconfig file, Mozilla ISPDB, DNS SRV, then MX. Private and loopback addresses are refused, and so are plaintext logins.
Changes use QRESYNC when the server offers it, otherwise UID and flag diffs. Where the server supports IDLE, NOTIFY or both, Workwae listens; otherwise it polls. Your app gets signed webhooks either way.
Prefer the Gmail API and Graph for those accounts. IMAP remains for tenants that need it. Gmail over IMAP requires your own Google app. A Microsoft IMAP token cannot call Graph; 21Vianet mail uses this path because Graph delta is not available there.
The same account can store CalDAV and CardDAV settings. Discovery covers iCloud, Fastmail, Yahoo calendar, GMX, Zoho, mailbox.org and Posteo, then well-known URLs. Collections are polled. There is no server-made meeting link on CalDAV. CalDAV and CardDAV.
Hosted connect asks for the mailbox and, when you enable them, calendar and contacts. Password accounts can also be created from credentials you already hold.
const session = await workwae.connectSessions.create({
redirectUri: "https://app.example.com/mail/connected",
providers: ["imap"],
externalRef: user.id,
options: { calendarEnabled: true, contactsEnabled: true },
});
return redirect(session.url);session = workwae.connect_sessions.create(
redirect_uri="https://app.example.com/mail/connected",
providers=["imap"],
external_ref=user.id,
options={"calendar_enabled": True, "contacts_enabled": True},
)
return redirect(session.url)Only when CalDAV is configured for it. IMAP itself has no calendar. The same is true of contacts and CardDAV.
No. Discovery and mail connections refuse private and loopback addresses, and plaintext logins are refused. The mailbox has to be reachable on the public internet with TLS.
Use the Gmail API unless you need IMAP semantics. Gmail IMAP needs the full mail scope, which Workwae’s own Google app does not request, so it has to be your app.
Through the account’s SMTP server. Sent mail is appended to the Sent mailbox unless the server files it itself, which Gmail and Microsoft do.
Tell us which mail hosts your users are on.