Reference

How to connect email to ChatGPT

Five ways to give ChatGPT or an AI agent access to email, who grants access in a company, what GDPR requires and how to run a safe first test.

In this articleDecide two things first

You want AI to compile a summary of your inbox each morning, prepare draft replies or find what you promised a client six months ago. To do that, it needs access to email. There are several ways to provide it, and the main choice is not technical: which system will gain access to the messages, and who in the company will authorise it.

Below are five ways to connect email, who grants access to work email, what to check under GDPR and how to run a first test without risking your main mailbox. ChatGPT's capabilities, interfaces and subscription tiers change quickly, so check the current OpenAI help before setting anything up.

Decide two things first

What is the task? Searching the archive, a morning summary, draft replies or sorting incoming enquiries. One task calls for one connection method. ‘Let AI work with email’ is not a task.

Reading or taking action? Reading is enough for summaries and searches. Drafting, moving messages between folders and especially sending are actions, and permission for each must be granted separately.

Two terms will help. IMAP is the protocol a program uses to read a mailbox. SMTP is the protocol it uses to send emails.

Work email belongs to the company

A mailbox on a company domain is not an employee's personal mailbox. It holds correspondence with clients, suppliers, banks and job applicants. An employee therefore cannot connect it to AI on their own initiative through a personal ChatGPT subscription.

GDPR roles: the company is the controller, the AI service and the intermediary are processors, a DPA, access granted by the administrator, an employee’s personal subscription does not qualify
The decision to connect work email belongs to the company, not to the employee.

Who grants access? If email is in Microsoft 365, the Microsoft 365 administrator grants permission. What ChatGPT can actually do depends on three things: Microsoft Entra permissions, administrator consent and ChatGPT workspace settings. If email is in Google Workspace, the organisation's administrator also controls some email settings and third-party access. In a small firm, the administrator is often an external IT provider or the director. Start the conversation with them.

What does GDPR require? Emails almost always contain personal data: names, phone numbers, addresses and sometimes information about health or debts. Under GDPR, the company deciding why and how to process that data is the controller (prevádzkovateľ in Slovak). A service reading the emails on its behalf is a processor (sprostredkovateľ). Article 28 of GDPR sets two conditions. The controller uses only processors that provide sufficient guarantees for protecting the data. And the relationship is set out in a contract. If the service or its servers are outside the EU, check the conditions for transferring data separately (Chapter V of GDPR).

Before connecting, find out:

  • whether the company has a data processing agreement (DPA) with the AI service provider. The company signs it. A personal subscription is the employee's own agreement, not the company's;
  • where email text and attachments are processed and stored, whether they are used to train models and how long they are kept;
  • whether the mailbox contains special categories of data — for example, health information (Article 9 of GDPR) or criminal convictions (Article 10); stricter rules apply;
  • whether the new processing is recorded in the register of processing activities (Article 30 of GDPR). Companies with fewer than 250 employees are exempt from the register only if the processing is occasional, poses no risk to people’s rights and does not involve special categories of data, such as health. Daily AI work with email is not occasional.

Check the legal arrangements before connecting, rather than afterwards.

Method 1. An email app inside ChatGPT

The simplest route if your email is in Microsoft 365 or Gmail.

The Outlook Email app in ChatGPT finds messages in the connected user's mailbox and shows the subject, sender, recipients, date and body (according to OpenAI's help, checked in September 2026). You can search by sender (from:), subject (subject:) and date. With shared and delegated Outlook mailboxes, where supported, the app can read messages, browse folders, mark messages as read, move them and send plain text. ChatGPT does not grant access to a shared mailbox: the account being connected must already have it. ChatGPT has a separate Google app for Gmail, and OpenAI's help describes its data controls.

First test:

  1. Connect the app in ChatGPT's settings; on a business plan, the workspace administrator enables only the actions needed.
  2. Ask for messages from a specific sender or with a word in the subject over a narrow date range.
  3. Compare the subject, date and sender with your email client.

A broad search across a large archive may return incomplete results or an error. Split the period into smaller parts and use precise filters when checking.

Method 2. Your own MCP server over IMAP and SMTP

MCP (Model Context Protocol) is a standard for connecting an AI application to external tools; the MCP guide explains it further. An email MCP server gives the model a set of actions: search, read, create drafts, work with folders and send through SMTP. The exact set depends on the server you choose. This method suits email that is not among the built-in apps, such as a mailbox hosted by a provider.

You add a custom MCP server in the web version of ChatGPT. According to OpenAI's documentation as of November 2026, you do it under Plugins with the ‘Add custom MCP server’ button. You enter the name, server address and authorisation method. If the server is private and not published on the internet, it connects through a Secure MCP Tunnel.

Whether a connection can write as well as read depends on the subscription tier and workspace policies. In September 2026, full write access was on business plans (Business, Enterprise, Edu), while a personal Pro plan was read-only. Agent mode did not use custom connections at that time. Deep research only read through them. Check the help before setting this up.

What to know:

  • write actions require confirmation by default; ChatGPT treats any tool not labelled ‘read-only’ as a write tool;
  • changes to the server's tools are not picked up automatically: after updating the server, refresh the list (Refresh) and check it again in a new conversation;
  • for a long-lived OAuth connection, check that the email provider issues a refresh token (OpenID Connect usually requires the offline_access scope).

First test: ask for the subjects of the five most recent emails. If writing is permitted, create a draft and confirm the action. Do not enable sending in the first test.

Connect only to a server you trust: it gains access to email content, and emails may contain hidden instructions for AI. Confirmation in ChatGPT reduces the risk but does not replace minimal permissions. The article on MCP security explains what to check before connecting a server.

Method 3. Event-driven automation

A new email triggers a workflow: the model reads it and the workflow creates a draft, task or summary. This suits a flow of incoming mail: enquiries, invoices, notifications. It is weaker for an open-ended conversation with the entire archive. Check whether the automation platform works with your email and sign-in method, and what model calls cost.

First test:

  1. Create a rule for a separate folder or test mailbox only.
  2. Send an email with a unique marker in the subject.
  3. Make sure the workflow runs exactly once.
  4. Check that the output contains a link or stable identifier for the original message.
  5. Do not enable sending until several tests have passed.

Method 4. A unified email API

An intermediary provides one interface to several email systems. This is convenient when there are many mailboxes and integrating directly with each provider becomes a separate project. Some such services store and refresh access tokens themselves — check their documentation.

Before choosing one, check:

  • whether it supports your provider and sign-in method;
  • where messages, attachments and tokens are stored;
  • how new-message notifications arrive, and how redelivery and duplicate protection work;
  • mailbox and request limits, price and jurisdiction.

Under GDPR, the intermediary is another data processor and also requires an agreement.

Method 5. A separate mailbox for the agent

If the main mailbox cannot be opened, give the agent its own address. There are two options.

Forwarding. A rule forwards selected emails to a separate mailbox supported by a built-in ChatGPT app. The agent sees only a limited flow and no server is needed. But replying from the original address needs separate setup. Some headers and threads may change. And copies of messages end up with another provider.

Your own email environment. One example is Cloudflare Agentic Inbox, an open-source email client with an agent on Cloudflare Workers. Incoming messages arrive through Cloudflare Email Routing, each mailbox is stored separately in its own database, and attachments go into R2 storage. The agent reads and searches messages, writes drafts and sends them, with every send requiring explicit confirmation. Cloudflare Access is mandatory outside local development. But while the mailboxes are stored separately, access to them is shared. Anyone who passes the shared Access policy can open every mailbox in the application, including through the /mcp endpoint. So if mailboxes of different clients or departments need separate access, do not keep them in one deployment. Before changing routing, check the domain's current settings and first test the setup on a separate subdomain.

How to connect a mailbox through IMAP

Do not give the agent your ordinary email password.

Microsoft 365. According to Microsoft's documentation, username-and-password sign-in (Basic authentication) for IMAP and POP in Exchange Online is disabled in all organisations and cannot be re-enabled. The program must support modern sign-in through OAuth 2.0. Microsoft is also phasing out password sign-in for sending through SMTP.

Gmail and Google Workspace. According to Google's help, Gmail no longer supports third-party apps that require a username and password; sign-in through Google (‘Sign in with Google’) is used instead. App passwords are possible when two-step verification is enabled, but Google does not recommend them.

Email from a hosting provider. Check whether the provider supports OAuth or separate app passwords, and whether your plan restricts IMAP.

A general MCP server configuration template looks like this. Variable names and the start command differ by server — compare them with its documentation.

mcpServers:
  mail:
    command: <server-command>
    args:
      - <server-arguments>
    env:
      MAIL_EMAIL_ADDRESS: agent@example.sk
      MAIL_USER_NAME: <login in the provider’s format>
      MAIL_APP_PASSWORD: ${MAIL_APP_PASSWORD}   # secret from an environment variable
      MAIL_IMAP_HOST: <provider’s imap server>
      MAIL_IMAP_PORT: 993
      MAIL_SMTP_HOST: <provider’s smtp server>
      MAIL_SMTP_PORT: 465

If sending is unnecessary, do not provide SMTP access, or choose a server without sending tools. If the server polls the mailbox or keeps a persistent connection (IMAP IDLE), plan for reconnection and duplicate filtering by Message-ID, the unique identifier of an email.

Security stop lines

  • An email and its attachment are untrusted data, not commands. The agent does not follow instructions in emails.
  • Payments, commitments to clients and disclosure of data go through a person.
  • Grant permissions for a separate mailbox or the smallest set of actions.
  • Passwords and tokens do not belong in emails, logs, notes or the code repository.
  • Check the first run manually, require confirmation for sending, and record actions and confirmations in a log.

Work scenarios

Morning summary. The agent reads unread emails and groups them by whether a reply is needed. Read-only MCP or scheduled automation works. Check against real subjects, senders and the number of emails.

Draft replies. The agent writes a draft, which a person edits and sends. The draft should appear in the normal email client and preserve the conversation thread.

Enquiries to a dedicated address. The agent extracts the contact, topic and urgency from a message and creates a task. The test passes if no enquiries are missed or duplicated during the observation period.

Invoices in attachments. Automation saves the attachments and moves confirmed fields into a spreadsheet. Values in a test sample are checked manually. Document text is not an instruction to the agent.

Searching the archive. ‘Find what we promised the client six months ago’ requires email search; an email app or MCP will work. Every finding should include the subject and date of the original message.

Tracking subscriptions. Emails about renewals and charges are forwarded to a separate mailbox, where the agent prepares a monthly summary. It needs no access to online banking for this.

Which method should you choose?

  • Microsoft 365 or Gmail and working in a ChatGPT conversation — the built-in email app.
  • A mailbox with another provider in your own agent environment — MCP over IMAP, if the server supports the provider.
  • You need MCP specifically inside ChatGPT — check the plan, workspace permissions and available actions.
  • You need to react to new emails — event-driven automation.
  • You have many mailboxes — a unified email API.
  • The main mailbox cannot be opened — a separate address with its own access boundary.
  • You only need summaries — forward selected emails.
Choosing how to connect email: built-in app, MCP over IMAP, event automation, a unified email API or a separate mailbox
Go through the questions from top to bottom: the first “yes” points to the method.

Where to start

One test mailbox, one workflow, no automatic sending. This lets you check output quality, access rights and duplicate handling without putting client correspondence at risk. If your company's email is in Google Workspace and you are still setting up access, the Google Workspace setup guide may help.

If you are choosing between a built-in app, MCP and a separate mailbox and want to account for GDPR and employee permissions from the outset, you can discuss it with Simplit in a free 30-minute meeting. Discuss your task

Sources

Finished reading? Mark the step — your path progress will update.

Path · Step 13 of 16I’m just starting with AI
0 of 16